Hello,
i get wrong chars from my database
i load the utf-8 and others but no works
what is wrong please?
here my header
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>jqGrid PHP Demo</title> <link href="jqgrid/css/jquery-ui.css" media="screen" type="text/css" rel="stylesheet"> <link href="jqgrid/css/ui.jqgrid.css" media="screen" type="text/css" rel="stylesheet"> <link href="jqgrid/css/ui.multiselect.css" media="screen" type="text/css" rel="stylesheet"> <style type="text"> <script src="//code.jquery.com/jquery-1.11.2.min.js"> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"> <script type="text/javascript" src="jqgrid/js/jquery-ui.min.js"> <script type="text/javascript" src="assets/js/i18n/grid.locale-de.js"> <script type="text/javascript"> <script type="text/javascript" src="jqgrid/js/jquery.jqGrid.min.js"> </head> |
here my php-code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
require_once './db/jq-config.php'; // include the jqGrid Class //require_once ABSPATH."incl/jqGrid.php"; require_once "incl/jqGrid.php"; // include the driver class //require_once ABSPATH."/incl/jqGridPdo.php"; require_once "incl/jqGridPdo.php"; // Connection to the server $conn = new PDO(DB_DSN,DB_USER,DB_PASSWORD); // Tell the db that we use utf-8 $conn->query("SET NAMES utf8"); // Create the jqGrid instance $grid = new jqGridRender($conn); |
thanks for any help
best regards
Achim
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top