UTF8 adding odd characters

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
neo314
Forum Newbie
Posts: 3
Joined: Thu Aug 14, 2008 3:37 am

UTF8 adding odd characters

Post by neo314 »

I have the MySQL database and the page encoded in UTF-8. I have tried the general and the unicode collations. When the registration symbol is submitted, and I return it from the database, it displays properly, but when I URL encode it, I get %E2 or %C2 in front of the reg symbol encoding (the difference is how linux or windows seems to handle tolower). If I remove the reg symbol from the string in a comparison, the extra character remains (with reg symbol I get %C2%AE without the reg symbol I get %C2).

The %C2 was never in the input (at least not intentionally). Any idea why this happens or how to get rid of it?
Post Reply