Forum
05:23
09/03/2009
hi tony,
first i would like to say you're doing a really good work with this component. It's really a pleasure to work with it.
I've a really simple bug which is that the locale file for french doesn't have the same codepage / encoding as the others. It's UTF-8 for this file and ANSI for the other.
so could you change this codepage or if all js files in jqgrid have to be UTF-8 you've to set a charset in your js inclusion in the jquery.jqgrid.js file
function IncludeJavaScript(jsFile)
{
var oHead = document.getElementsByTagName('head')[0];
var oScript = document.createElement('script');
oScript.type = 'text/javascript;charset=utf-8';
oScript.src = jsFile;
oHead.appendChild(oScript);
};
thx,
marc
08:03
Moderators
30/10/2007
Hello,
Thanks. Added.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
00:31
12/03/2009
hi tony,
I've used jqgrid since 2 weeks and i have also this problem of encoding. I've search through the forum the word 'enconding' and i've seen the same response: this is not a jqgrid problem ...
I've seen this post yesterday and i've modified the file jquery.jqGrid.js to add utf-8 without effect... characters like é,à always appears like é
I check all my files all they are using utf-8 encoding, my postgresql database is also in utf-8 and i push in header response from server utf-8
So where is the problem and can you tell me where to modify files in jqgrid js to support french accents ?
05:07
09/03/2009
hi all,
i've made another test today and it seems that the "good" patch must be:
function IncludeJavaScript(jsFile)
{
var oHead = document.getElementsByTagName('head')[0];
var oScript = document.createElement('script');
oScript.type = 'text/javascript';
oScript.charset="utf-8";
oScript.src = jsFile;
oHead.appendChild(oScript);
};
05:13
09/03/2009
lorent said:
hi tony,
I've used jqgrid since 2 weeks and i have also this problem of encoding. I've search through the forum the word 'enconding' and i've seen the same response: this is not a jqgrid problem …
I've seen this post yesterday and i've modified the file jquery.jqGrid.js to add utf-8 without effect… characters like é,à always appears like é
I check all my files all they are using utf-8 encoding, my postgresql database is also in utf-8 and i push in header response from server utf-8
So where is the problem and can you tell me where to modify files in jqgrid js to support french accents ?
hi lorent,
have you some problems with jqgrid message or with your datas ?
if it's with jqgrid message (deletion confirmation ...) so you can try the new patch submitted above, if these problemes are on your datas so you have to verify the content-type in your JSON response.
regards,
marc
05:51
12/03/2009
mpasteur said:
hi all,
i've made another test today and it seems that the “good” patch must be:
function IncludeJavaScript(jsFile)
{
var oHead = document.getElementsByTagName('head')[0];
var oScript = document.createElement('script');
oScript.type = 'text/javascript';
oScript.charset=”utf-8″;
oScript.src = jsFile;
oHead.appendChild(oScript);
};
Thank you, it seems to work for headers but in the cells it doesn't
09:59
Moderators
30/10/2007
Hello,
Thanks. I have already fix this. The previous code breaks in Opera. This one works fine with all browsers.
Regards
Thank you
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
57 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66