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

      0  

    Default How do you handle unwanted chars in strings in your JSON app

    How do you handle unwanted chars in strings in your JSON app


    Can I get some ideas on how to hande citation marks etc in your json applications.

    Today I'm doing a URLEncode.encode(string) on every single value in the JSON object and then I'm using unescape() in javascript to unmask the chars again. But this works not very well with Ext's template/view model.

    Are there any other fancy ways to solve this?

  2. #2
    Ext Premium Member BernardChhun's Avatar
    Join Date
    Mar 2007
    Location
    Quebec, Canada
    Posts
    831
    Vote Rating
    2
    BernardChhun will become famous soon enough

      0  

    Default


    In Templates, we use the HTML 2.0 & 3.2 Standard Entity references such as
    ü
    that works like a charm :wink:

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    49
    Vote Rating
    0
    Joche is on a distinguished road

      0  

    Default


    Quote Originally Posted by BernardChhun
    In Templates, we use the HTML 2.0 & 3.2 Standard Entity references such as
    ü
    that works like a charm :wink:
    So you are sending in HTML entities for strange characters in your JSON object to the template. Are you using the same approach if the template generates a form?

Similar Threads

  1. Anything besides strings in grid headers?
    By willogee in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 28 Feb 2008, 6:57 AM
  2. Ext Template to insert DOM nodes rather than strings?
    By SteveEisner in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 21 Mar 2007, 4:47 PM
  3. Regex Strings with Quotes
    By fuzzymonk in forum Sencha Cmd
    Replies: 0
    Last Post: 8 Mar 2007, 6:19 AM
  4. Replies: 2
    Last Post: 5 Mar 2007, 1:20 AM
  5. How to Handle Drag on Resizable
    By ch-world in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 18 Jan 2007, 8:10 AM

Thread Participants: 1

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