PHP: is urlencode() a safe way to allow valid UTF-8 strings in the URL?
Posted
by Xeoncross
on Stack Overflow
See other posts from Stack Overflow
or by Xeoncross
Published on 2010-01-07T23:59:54Z
Indexed on
2010/04/23
16:43 UTC
Read the original article
Hit count: 170
I have user submitted tags that can be any type of (valid) UTF-8 string. I want to know if it is safe to include them in the URL merly by running them through urlencode()
.
In other words, is urlencode() safe to use for valid UTF-8 strings? (by valid I mean id have already force-encoded them to UTF-8)
© Stack Overflow or respective owner