Re: php rawurldecode from javascripts' escape()
- From: "Chung Leong" <chernyshevsky@xxxxxxxxxxx>
- Date: 29 Oct 2005 08:19:52 -0700
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.
.
- Follow-Ups:
- Re: php rawurldecode from javascripts' escape()
- From: swayze
- Re: php rawurldecode from javascripts' escape()
- References:
- php rawurldecode from javascripts' escape()
- From: swayze
- php rawurldecode from javascripts' escape()
- Prev by Date: Re: PHP / Javascript menu list population
- Next by Date: Re: How to turn $6 to $16000 in few days of web crawling
- Previous by thread: php rawurldecode from javascripts' escape()
- Next by thread: Re: php rawurldecode from javascripts' escape()
- Index(es):
Relevant Pages
|