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
Arabic and Chinese characters are not displaying properly in jqgrid
10/10/2012
17:37
Avatar
GridLearner
Member
Members
Forum Posts: 4
Member Since:
10/10/2012
sp_UserOfflineSmall Offline

Hi,

I am using JQgrid 4.4 version. I have added 

ajaxGridOptions: {

contentType: 'application/json; charset=utf-8'

} this into my js file. But still the Arabic and chinese characters are not working properly.

It would be great if anyone can help me out of this problem.

11/10/2012
17:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This setting is by default, so the grid has nothing to do.

1. Set the caheset with meta tag in your html page

<meta charset="utf-8">

2. When the data comes from the server be a sure you send a header with utf-8.

In PHP before to output the data do:

header("Content-type: text/xml;charset=utf-8″);

Regards

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.

11/10/2012
17:24
Avatar
GridLearner
Member
Members
Forum Posts: 4
Member Since:
10/10/2012
sp_UserOfflineSmall Offline

Hi Tony,

Thanks for your response. I am using Java to get json object. I have set like this,

final HttpServletResponse response = (HttpServletResponse) facesContext .getExternalContext().getResponse();

response.setContentType("application/json; charset=utf-8");

Still is not working.

31/10/2012
11:38
Avatar
Arvind Yadav
Member
Members
Forum Posts: 12
Member Since:
16/11/2011
sp_UserOfflineSmall Offline

Hi,

Are you still facing the issue.

How are you sending the data in a ajax request?

And also, set the response content type at the correct place.

regards

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
36 Guest(s)

Currently Browsing this Page:
1 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