|
Posted by Chung Leong on 11/16/92 11:31
swayze wrote:
> Hi,
>
> I'm sending some vars to php from javascript. These vars contain
> special chars (like "&" ,",")and also turkish characters. Therefore
> I'm using javascripts escape() function to be able to send them
> properly. My problem is on the php side. I am using rawurldecode to
> convert them back. However, Turkish characters like "I" (capital "I"
> with a dot on top) for example still stay encoded as "%u0130".
Try using encodeURIComponent() instead of escape(). The function won't
help you though if you're not using UTF-8.
Instead of dealing with encoding issues manually, I would just create a
hidden form on the fly, fill it in, and submit it.
Navigation:
[Reply to this message]
|