especial characters in pager with spanish languaje

Questionsespecial characters in pager with spanish languaje
Alex asked 7 years ago

in demo page -> misc -> localization
pager characters works fine, with grid-locale-es-js but in my page this is what i see in the pager.

Export Página de 1 Mostrando 1 – 4 de 4

using this code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="../phpgrid/lib/js/themes/cupertino/jquery-ui.custom.css"></link>
<link rel="stylesheet" type="text/css" media="screen" href="../phpgrid/lib/js/jqgrid/css/ui.jqgrid.css"></link>

<script src="../phpgrid/lib/js/jquery.min.js" type="text/javascript"></script>
<script src="../phpgrid/lib/js/jqgrid/js/i18n/grid.locale-es.js" type="text/javascript"></script>
<script src="../phpgrid/lib/js/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="../phpgrid/lib/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
</head>
<body>
<table align="center">
<tr>
<td>
<?php include "../menu_cfdi.php" ?>
<div style="margin:10px" align="center">
<?php echo $out?>
</div>
</td>
</tr>
</table>
</body>
</html>

3 Answers
Abu Ghufran answered 7 years ago

Try adding following in html head.
Also check if your file is in utf8 format.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

You can also verify, IE -> right click on page -> encoding -> utf8

Alex answered 7 years ago

thank you,i was omiting this detail, however when i export to pdf the header title "relación de facturas" prints "Relaci de facturas"

Abu Ghufran answered 7 years ago

Try setting utf8_encoded heading.

$grid["export"] = array("format"=>"pdf", "filename"=>"my-file", "heading"=>utf8_encode("relación de facturas"));

Your Answer

6 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?