22 Feb 2007 5:27 AM #1
I'm having some problems with character encoding in the grid.
I'm using json to load the data into the grid. The data contains some special characters (é for example).
When I directly display the result from my query the character is displayed correctly. After json_encoding it the result is:
As you can see it's now a \u0000.
When displaying the data in the grid firefox just ignores this character (displaying nam, it should have been namé) and ie stops rendering the data.
Adding a CONVERT(col USING ASCII) solves the problem but now ? tokens are displayed, not a very neat solution...
22 Feb 2007 6:35 AM #2
Did you set the content type on you server so the browser knows to decode it? You really shouldn't have to do anything manually.
23 Feb 2007 12:46 AM #3
It seems that json_encode ruined my data by encoding it incorrectly (é resulted in \u0000). I modified the PEAR package Services_JSON to use mb_convert_encoding which seems to work perfectly.
23 Feb 2007 1:17 PM #4
Anyone managed to use inline editing with a POST to a domino agent, using values containing å, ä, ö.
All special characters turns out wrong in Domino. If anyone succeeded, please tell me the settings on the server.
By young_matthewd in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 23 Mar 2007, 1:13 AM
By hicker in forum Ext 2.x: Help & DiscussionReplies: 7Last Post: 27 Feb 2007, 6:59 AM