Page 1 of 1

file contents were removed when encoding is not recognized

Posted: Thu Sep 01, 2016 7:43 am
by cwqbupt
Hi,
I am using codelite to edit some files with Chinese characters, sometimes the file is encoded with UTF8 and sometimes GBK (Windows936), I am could just chose ONLY one of the encoding in Preference -> Misc -> File font encoding. When chose UTF8 for example, then GBK encoded files content will not be recognized, then problem comes: if I edit this file and save in codelite, the whole file content will be removed automatically !!! User may lost importance file due to this problem.
Anyone know how to avoid this? or is it possible for Codelite to fix this bug?
thx~

Re: file contents were removed when encoding is not recogniz

Posted: Thu Sep 01, 2016 12:58 pm
by eranif
Open a bug in GitHub that includes:
1. A sample file
2. steps to reproduce

Eran

Re: file contents were removed when encoding is not recogniz

Posted: Sat Sep 03, 2016 6:57 pm
by cwqbupt
eranif wrote:Open a bug in GitHub that includes:
1. A sample file
2. steps to reproduce

Eran
Thanks Eran, I open an issue here:
https://github.com/eranif/codelite/issues/1399