JS, Sajax and UTF8
Well.. those three can be a real headache, right?
Well.. let's see what's going on. I'm trying to send this string through sajax to my php script: Code:
Huáscar On the wire, FF(Sajax) is sending: Hu%E1scar and what I get in PHP is: Code:
Hu�scar What trick do I have to try? For example, I tried using escape on JS and rawurldecode on PHP, but this is the result: On the wire on the request (sajax): Code:
Hu%25E1scar Code:
Hu�scar Thanks in advance! |
I made a little mistake in the previous post. I said á was \uc3a1, and it's \u00e1. Everything else stands.
|
I removed sajax and used plain old ajax instead and it's working now. Didn't have to use any encoding/decoding procedure to get it working with UTF-8. Thanks anyway, guys!
PS It's too bad I'll have to remove sajax from development, cause I've really liked it so far. |
Hi, I just wanted to tell you that sajax 0.13 has full UTF-8 support.
You can get it at http://sajax.info/. Hope to see you there :) |
All times are GMT -5. The time now is 05:26 AM. |