seanliang / ConvertToUTF8

A Sublime Text 2 & 3 plugin for editing and saving files encoded in GBK, BIG5, EUC-KR, EUC-JP, Shift_JIS, etc.
https://github.com/seanliang/ConvertToUTF8
MIT License
900 stars 179 forks source link

How to keep "illegal multibyte sequence" (wrong encode character) when save #62

Closed quyen194 closed 8 years ago

quyen194 commented 8 years ago

Dear seanliang,

I have a source file with SJIS encoding, it has some wrong encode character (when saving file, ConvertToUTF8 said: illegal multibyte sequence). And ConvertToUTF8 will remove it from source. How to keep them when save? I tried sakura editor and it did keep, but i love sublime text.

Thanks and best regards,

seanliang commented 8 years ago

This plugin is written in Python which API can not meet your requirement. The write method will fail completely if there is any malformed data. That's the reason why I have to ignore those data.

quyen194 commented 8 years ago

Thanks If i can improve it, I will create a pull request ^^

Best regards

seanliang commented 8 years ago

@quyen194 That would be great. :+1: