[nycphp-talk] fgetcsv and German characters
John Campbell
jcampbell1 at gmail.com
Tue Aug 14 11:32:44 EDT 2007
Interesting... \x9f and \x8a are not valid Latin-1/8895 characters. My
guess is that the CSV's are UTF-8 and your database is Latin-1. If that is
the case, try converting the csv to 8859-1 with utf8_decode().
It is a bit of a hack, but it should work if the only languages you support
are german/spanish/french/english. If you want your code to work with all
languages, you need to change the db encoding to utf8, and make sure all
input and output is UTF8.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070814/1dd7bc59/attachment.html>
More information about the talk
mailing list