I am wondering if functions like strip_tags() and trim() know UTF-8?
I found this on the Internet, but I'm not sure about this:
strip_tags() : UTF-8 multibyte characters do not contain byte sequences that resemble characters of a smaller or larger size.
trim() : UTF-8 multibyte characters do not contain byte sequences that resemble spaces.
If this is true, using these functions with a UTF-8 string may result in a damaged / illegible string.
Thanks.
source share