1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    12
    Vote Rating
    0
    abdul.hafiz2010 is on a distinguished road

      0  

    Default Special Character like single quote ‘ dose not render on Window with auto load

    Special Character like single quote ‘ dose not render on Window with auto load


    I have a string like "Hi What's up? How are you?". This string dose not render on window due to single quote in "Waht's up". If i remove this single quote it displays properly.
    Is there any way to render special charecter on Window? Please help me out on this.

    My Code is written below.

    var messagePopupWin = new com.components.CLWindow({
    width: 680,
    height: 460,
    stateful: false,
    autoScroll: true,
    layout: 'fit',
    title:'<cl:message code="cl.global.message.label" />',
    id: 'messagePopupId',
    autoLoad: {
    url: CLGlobalController.messages.url,
    params: {
    ajaxFx: CLGlobalController.messages.getMessage,
    id: grid.getStore().getAt(rowIndex).get('id')
    },
    scripts: true
    },
    buttons: [{
    xtype: 'button',
    text: '<cl:message code="cl.global.close.button" />',
    handler: function() {
    messagePopupWin.close();
    }
    }]
    });

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You need to JSON-encode the string, e.g.
    Code:
    title: <cl:message code="cl.global.message.label" jsonEncode="true" />
    (and have your tag library JSON encode the value if the jsonEncode attribute is set to true)

Similar Threads

  1. email validation support for single quote character
    By mdissel in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 19 Aug 2010, 6:53 AM
  2. JSONstore will not load special character entries
    By OSUWebDev_TBell in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 12 Aug 2010, 12:49 PM
  3. Auto Complete combobox on typing single character
    By extjslikeit in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 10 Jul 2010, 9:34 AM
  4. html decode problem for single quote
    By amodg in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 20 May 2010, 3:51 AM
  5. [SOLVED]TreePanel auto load a special not
    By redlz2500 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 24 Jul 2008, 1:06 AM

Thread Participants: 1