NYCPHP Meetup

NYPHP.org

[nycphp-talk] utf8 woes - is there a UTF string unencoder ?

inforequest 1j0lkq002 at sneakemail.com
Tue May 30 19:36:51 EDT 2006


I have a mixed app in development where some data is utf8 and some is ... well... not utf8 :-)

I have some spaces reported to be %A0 (non-breaking space in utf8) and it's messing up my lookups... it's obviously not a match for the "normal" PHP space character.

What to do? I can do a preg_replace on the urlencoded string and then unencode, but that is ridiculous to me. 

Thanks for any help.   -=john



More information about the talk mailing list