You are wright,

It's only the JSON part that is unusable. But it's so frustrating.
And Prototype dooesn't work if I use the JSON library comming from
www.json.org.

When I use YUI library to request JSON data from PHP and use JSON.org
lib everything work's fine.
Both library (js and php) escape accents to send it on the wire.
So fare I handle it I set everything to UTF-8.
Is use <meta http-equiv="Content-Type" content="text/html;
charset=utf8" /> in my HTML pages.

I think I read that only ascii can be send on the wire ?


Constant




On 12 avr, 10:49, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> Hey Constant,
>
> First, JSON issues do not make Prototype unusable: only its JSON parts.
>
> Second, in JSON, all of your strings, be they property *names* or
> property values, are supposed to be properly quoted.  Are yours?
>
> Finally, you'll need to make sure your HTTP response specifies the
> proper charset in its Content-Type header.  Perhaps your issue is more
> akin to returning, for instance, a ISO-8859-1 text with a UTF-8 charset.
>
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
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