On Dec 27, 2007 10:24 AM, Andreas Franke <[EMAIL PROTECTED]> wrote:

>
> Hi Nicolas,
>
> > Check the database. Probably your database is not saving things in
> UTF-8.
>
> All Data in the databas is stored in utf-8. if check the responseText all
> is
> fine! But after that i'm doing the evalJSON on the responseText and after
> i
> did this the � (\u0080) is lost the evalJSON seems to be the prob.
>
>
> Before evalJSON: "Beschreibung":"asdf \u0080 @ \u00e4\u00f6\u00fc\u00df"
>
> After evalJSON: "asdf � @ ����"
>
> Andreas


There have been times where I've found that using something like
rawurlencode to escape that character - then unescaping it with JavaScript
does the trick.  Certain special characters get hung up for some reason (I
have a particularly hard time with Cyrillic characters)

Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to