1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    42
    Vote Rating
    0
    mnugter is on a distinguished road

      0  

    Default Character encoding

    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
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      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
    mnugter is on a distinguished road

      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
    gizzmo is on a distinguished road

      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

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar