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

Posted by John Dunlop on 11/11/16 11:30

swayze wrote:

> 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".

the doc for rawurldecode() says it decodes percent-encodings, but since
'%u0130' isn't a percent-encoding rawurldecode() doesn't decode it. to my
knowledge there isn't a (PHP) function which decodes your encodings.

encoded as UTF-8 and percent-encoded, as RFC3986 prescribes, 'İ' (U+0130)
is represented in URIs as <%C4%B0>. rawurldecode('%C4%B0') here gives me
the letter 'İ'.

--
Jock

 

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

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