file contents were removed when encoding is not recognized

CodeLite installation/troubleshooting forum
cwqbupt
CodeLite Curious
Posts: 2
Joined: Thu Sep 01, 2016 7:33 am
Genuine User: Yes
IDE Question: C++
Contact:

file contents were removed when encoding is not recognized

Post 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~
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: file contents were removed when encoding is not recogniz

Post by eranif »

Open a bug in GitHub that includes:
1. A sample file
2. steps to reproduce

Eran
Make sure you have read the HOW TO POST thread
cwqbupt
CodeLite Curious
Posts: 2
Joined: Thu Sep 01, 2016 7:33 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: file contents were removed when encoding is not recogniz

Post 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
Post Reply