Hi all,

This is popular problem when we handle non-ascii charactor with AJAX or
json.
Safari and KDE Konqueror always mishanlde json charactor encoding.

Workaround is :
  urlescape json string at server side
  and unescape json string at client side.



>>>> Has anyone come up with a workaround to this problem:
>>>>
>>>>      http://trac.turbogears.org/turbogears/ticket/186
>>>>
>>>> ... its currently causing me great pain!  I filed a bug against
>>>> WebKit's bugzilla, but I would love to find a workaround, if
>>>> possible.
>>> Isn't this irrelevant for JSON since simplejson escapes everything
>>> but ASCII?
>> Well, I am not entirely sure.  Its possible that the bug I mentioned
>> isn't my problem, but I have a controller method that returns some
>> unicode strings inside a dictionary.  This controller method is being
>> called by loadJSONDoc() on the client side, and the unicode string is
>> being placed into a textarea.  On Safari, I see escaped text.  On
>> Firefox, I see proper unicode strings.
>>
>> So, it seems like this may be the bug I mentioned, but I don't know
>> for sure.
> 
> Write a test case so that other people can see the issue.
> 
> -bob
> 
> 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to