Textpad detect and opens sql file as UTF-8 when it is ANSI
Posted: Mon May 09, 2016 5:53 pm
I have a particular SQL file that is encoded in ANSI (Windows 1252 code page) and displays correctly when viewed with Notepad, for example.
However, when I open the file with Textpad, it (wrongly) detects it as a UTF-8 file and saves it as such.
When I choose "Save As" and specifically select "Encoding" as ANSI, it displays a warning stating that file contains characters that cannot be converted to ANSI and asks me if I want to continue. Obvisouly, the 8 bit characters present in file are lost after this.
This is the only SQL file I have this problem with, all others work fine.
No matter what I have tried, Textpad always converts this file to UTF-8 on open. Document classes are configured correctly, I have checked that.
What can be the problem?
Thanks
However, when I open the file with Textpad, it (wrongly) detects it as a UTF-8 file and saves it as such.
When I choose "Save As" and specifically select "Encoding" as ANSI, it displays a warning stating that file contains characters that cannot be converted to ANSI and asks me if I want to continue. Obvisouly, the 8 bit characters present in file are lost after this.
This is the only SQL file I have this problem with, all others work fine.
No matter what I have tried, Textpad always converts this file to UTF-8 on open. Document classes are configured correctly, I have checked that.
What can be the problem?
Thanks