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
Special Characters in JQgrid 3.5
28/01/2010
13:32
Avatar
epp687
Member
Members
Forum Posts: 8
Member Since:
28/01/2010
sp_UserOfflineSmall Offline

Dear All,

I have setup JQgrid 3.5 and I realise that when I get as responce something like the above:

<title> <Mr> </title>
<language> HR </language>

the whole jgqrid does not shown anything.
If I remove < > from the title the jqgrid shows all the lines.
I have tried  <![CDATA[ .... ]]> and I lose all the information in the cell title

Can anyone advice me?
Thanks a lot.
Kostis







28/01/2010
16:45
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The correct way is to use CDATA and grid option autoencode set to true (you should use at least 3.5.3 )

http://www.trirand.com/jqgridw.....ki:options

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

28/01/2010
17:00
Avatar
epp687
Member
Members
Forum Posts: 8
Member Since:
28/01/2010
sp_UserOfflineSmall Offline

Hello Tony and thank you for your quick answer...

I try autoencode but i get the same result.

I use 3.5.3 version.

Should I upgrade it?

If I use CDATA I will loose information...

Is there is any other way to show those special characters?

Thanks in advance

01/02/2010
08:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Should look what is with 3.5.3 version, but I think there is no problem to test with 3.6.2

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.

01/02/2010
08:20
Avatar
epp687
Member
Members
Forum Posts: 8
Member Since:
28/01/2010
sp_UserOfflineSmall Offline

Thank you very much Tony for your interest..

I will try to 3.6.2 version and I will post back.

Thanks again,

Kostis

03/02/2010
12:30
Avatar
epp687
Member
Members
Forum Posts: 8
Member Since:
28/01/2010
sp_UserOfflineSmall Offline

Hello Tony,

I have installed 3.6.2 version and nothing happens.

Below I attach the xml string sended from server and how it looks:

<row>
<id>21760</id>
<koc>AEC - 12</koc>
<title>La Prophétie des grenouilles </title>
<languages>FR</languages>
</row>


| AEC - 12 | La Proph�tie des grenouilles | FR |

May you give me a solution?
I have tried to set autoencode : true but I get html code in my jqgrid.

Thanks
03/02/2010
20:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You should:

1. set the encoding in the html file

2. set encoding in the connection

3. and at last, but not least set header("Content-type: text/xml;charset=your_charset_here"); in case of PHP

Hope this helps

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

16/02/2010
09:32
Avatar
epp687
Member
Members
Forum Posts: 8
Member Since:
28/01/2010
sp_UserOfflineSmall Offline

Hello Tony,

I have set the encoding to html page and xml string that I send to jsp through the controller.

I use Spring...

Nothing happens...

Still facing the same problem...

What other information I must provide to this post?

Thanks in advance?

Kostis

17/02/2010
10:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

What is the equivalent in JSP to this in php?

header("Content-type: text/xml;charset=your_charset_here");

Thios should be set as server command before sending to the grid.

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.

17/02/2010
11:15
Avatar
gerry78
New Member
Members
Forum Posts: 1
Member Since:
17/02/2010
sp_UserOfflineSmall Offline

Hi

In jsp pages you set the following directive on top of the page:

<%@ page contentType="text/html; charset=UTF-8" %>

Regards

Makis

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
49 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