Results 1 to 3 of 3

Thread: ComboBox and Unicode

  1. #1
    Sencha User
    Join Date
    May 2008
    Posts
    180

    Default ComboBox and Unicode

    When i send unicode characters to combo box from server (hebrew in my case),
    If i dont encode it into ascii, then the browser receives it wrong and wont display it in the combo box. When viewing in firebug i see the string i sent cut in the middle...

    But i encode it in the server side, everything arrives ok, but combo box displays:
    ז in its box when some value is selected.
    Although in the drop down it is displayed fine.

    That happens because in the textfield the text displayed as it really is, but in the drop down box html converts it to the unicode character.

    My question is how can i solve this issue?
    Has anyone had to cope with this before?

    Thanks.

    (If i explained it badly in some way please let me know)

  2. #2

    Default

    You don't need to do any encoding in the server side, just pass the text directly to the client side.
    (* if your text has been encoded already in the database, pls decode it b4 passing to client)

    And then your webpages should be saved in unicode format.

  3. #3
    Sencha User
    Join Date
    May 2008
    Posts
    180

    Default

    problem is that if i dont encode at server side, then the received string as i see it in firebug is cut in the middle...
    as i understand the unicode character might take more than 1 char size or something like that, so maybe content size is not fit in not encoded state.

Posting Permissions

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