philip / MySQLConverterTool

A MySQL Converter Tool
314 stars 144 forks source link

Charset different from UTF-8 #27

Open fippu82 opened 7 years ago

fippu82 commented 7 years ago

I have files with the encoding Windows-1252. In this case, the below error is thrown. (ASCII=xx has different numbers depending on the input file).

PHP Warning: Unexpected character in input: '' (ASCII=14) state=0 in /tmp/MySQLConverterTool-master/Converter.php on line 313

alexschwarz89 commented 5 years ago

+1 you got any solution for this?

fippu82 commented 5 years ago

@alexschwarz89 Sadly not. I gave up and rewrote the code instead.

fippu82 commented 5 years ago

@alexschwarz89 I just tried it again on a different server and with different files (also Windows-1252 encoded) and didn't run into this problem anymore. I can't tell why. If it doesn't work for you, maybe it helps to just save the files as UTF-8 encoded.