Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Locale codepage / encoding
11/03/2009
05:23
Avatar
mpasteur
Member
Members
Forum Posts: 4
Member Since:
09/03/2009
sp_UserOfflineSmall Offline

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

11/03/2009
08:03
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

12/03/2009
00:31
Avatar
lorent
Member
Members
Forum Posts: 3
Member Since:
12/03/2009
sp_UserOfflineSmall Offline

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 ?

12/03/2009
05:07
Avatar
mpasteur
Member
Members
Forum Posts: 4
Member Since:
09/03/2009
sp_UserOfflineSmall Offline

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);
    };

12/03/2009
05:13
Avatar
mpasteur
Member
Members
Forum Posts: 4
Member Since:
09/03/2009
sp_UserOfflineSmall Offline

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

12/03/2009
05:51
Avatar
lorent
Member
Members
Forum Posts: 3
Member Since:
12/03/2009
sp_UserOfflineSmall Offline

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

13/03/2009
09:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

06/05/2009
08:50
Avatar
dforrestca
Member
Members
Forum Posts: 17
Member Since:
27/09/2008
sp_UserOfflineSmall Offline

We are using jqgrid 3.4.3  and having this grid no show in Opera issue. What file does the above fix go in?

THanks

Found the jquery.jqGrid.js above... my bad

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information