urldecode() - utf-8?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

urldecode() - utf-8?

Post 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?
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: urldecode() - utf-8?

Post by bdeshi »

Code: Select all

/* text*/ utf8decode(urldecode(string));
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: urldecode() - utf-8?

Post by highend »

Thanks, works :)
One of my scripts helped you out? Please donate via Paypal

Post Reply