|
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]
|