htmlentities() giving strange results...
Moderator: General Moderators
htmlentities() giving strange results...
I'm trying to use the htmlentities() function but finding that many characters get very strange results. For instance, the character « does not get converted to simply «, but rather «. Some characters after conversion are even worse -- for instance, the character ‹ comes out as â�¹. What's wrong?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I would suspect the data you have stored is not simple ascii, but some variant of unicode or other multibyte character set. htmlentities() was built for the ASCII character set.