MySQLConverterTool icon indicating copy to clipboard operation
MySQLConverterTool copied to clipboard

Charset different from UTF-8

Open fippu82 opened this issue 6 years ago • 3 comments

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

fippu82 avatar Nov 15 '17 09:11 fippu82

+1 you got any solution for this?

alexschwarz89 avatar Nov 21 '18 08:11 alexschwarz89

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

fippu82 avatar Nov 21 '18 09:11 fippu82

@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.

fippu82 avatar Nov 25 '18 11:11 fippu82