Page 1 of 1

urldecode() - utf-8?

Posted: 24 Aug 2014 21:53
by highend
I'm using a html form for one of my scripts (via html).

If I enter an "ä" into the inputbox the resulting html string contains:
fn_Pattern=%C3%A4
But when I urldecode it, I get:
ä
instead of an "ä"...

I've tried:
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>
but that doesn't change anything. How do I get back the right unicode character?

Re: urldecode() - utf-8?

Posted: 25 Aug 2014 06:47
by bdeshi

Code: Select all

/* text*/ utf8decode(urldecode(string));

Re: urldecode() - utf-8?

Posted: 25 Aug 2014 12:43
by highend
Thanks, works :)