Results 1 to 4 of 4

Thread: Character encoding

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    42
    Vote Rating
    0
      0  

    Default Character encoding

    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:

    {"debiteur_id":"1","naam":"name","plaats":"city","adres":"adress","contactpersoon":"nam\u0000"}

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


    Any ideas?

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    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.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    42
    Vote Rating
    0
      0  

    Default

    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.

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    117
    Vote Rating
    0
      0  

    Default

    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.

Similar Threads

  1. yet another encoding problem (server side with weblogic 9.0)
    By young_matthewd in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 23 Mar 2007, 1:13 AM
  2. update manager and character set
    By hicker in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 27 Feb 2007, 6:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •