You are here: Re: php rawurldecode from javascripts' escape() « PHP Programming Language « IT news, forums, messages
Re: php rawurldecode from javascripts' escape()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация