Jan 25, 2012, 11:08 AM
[CLOSED] How do I recover my original string, with accents?
Hi
In my gridPanel, the directEvent SelectionChange call my procedure SelectionChanged, passing to the procedure the values of selected row, as follow:
Is thus: Sala Igua\\u00e7u
and should be as follows: Sala Iguaçu
this happens with all my accented characters
I try deserialize the Json string with this code
Thanks for any help.
In my gridPanel, the directEvent SelectionChange call my procedure SelectionChanged, passing to the procedure the values of selected row, as follow:
<DirectEvents>
<SelectionChange OnEvent="lstAgendasSalasSGE_SelectionChanged"
Failure="Ext.MessageBox.alert('Load failed', 'Error during ajax event!');">
<ExtraParams>
<ext:Parameter Name="values" Value="Ext.encode(#{lstAgendasSalasSGE}.getRowsValues({selectedOnly:true}))" Mode="Raw" Encode="true" />
</ExtraParams>
</SelectionChange>
</DirectEvents>
the values that I get in my procedure are serialized in Json, as follow...""[{\"IDAgendaSala\":3,\"Descricao\":\"Sala Igua\\u00e7u\",\"Detalhes\":\"\"}]""
note that the value of Description modelfield are with a code instead of ç (c cedilha, character widely used in Brazil)...Is thus: Sala Igua\\u00e7u
and should be as follows: Sala Iguaçu
this happens with all my accented characters
I try deserialize the Json string with this code
Ext.Net.JSON.Deserialize(JsonString.Trim)
Am I doing something wrong? I´m missing some step?Thanks for any help.
Last edited by Daniil; Jan 25, 2012 at 12:18 PM.
Reason: Please use [CODE] tags for any code, [CLOSED]