Javier Rojas wrote:
> I'm using mochikit's loadJSONDoc function, but when some part of the url 
> has accented chars, it doesn't work,
> 
> in my case, I'm reading a name with prompt(), and then appending it to 
> the url to load , e.g., "addPerson?tg_format=json&name="+name
> 
> when is only ascii, it works, but no in other cases
> I already tried to use escape() on the string to be passed, but nothing,

Have you tried encodeURIComponent()?

What encoding do your pages have? Do you set the the page encoding with 
a meta tag in the header?

Have you tried getting the name through a form input field? Try adding 
an accept-charset="UTF-8" attribute to our form tag.

Chris

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