You provide an ANSI file with "non-ANSI" characters.
The file was created by c::b.
In the prior version (svn 5382) c::b, I have set the "Use encoding when opening files" to "UTF-8", since most of time I need to write the wxWidget (UNICODE ver ) project.
one day, I need to write "Console project" . As you knonwn, the windows OS' console can't show any Chinese character which encoded by utf-8. So, I changed the main.cpp file's encoding from c::b's "Edit" menu. save it, compile... run, everything OK with "svn 5382" version.
Yesterday I updated c::b to svn5432, open the main.cpp, then show nothing.
----------------------------------------
Choose the right encoding in the first place (when you create the file) I'd say.
but when I create a new text file by "notepad", and input some Chinese character (or any other non-ANSI character) ...and try to "Save-as", the notepad give me four options:
ANSI
Unicode
Unicode big endian
UTF-8
I understand it maybe not the right encoding , but I have to select the "ANSI".
I know I can just save the file to UTF-8, and write some code to convert the encoding before output to console:
std::cout << convert_utf8_to_gb2312 ("~~chinese char~~") << std::endl;
But doing this will cost me an arm and a leg... I am writing a book for c++ beginner how to program with code::blocks. And the first program is write "Hello world!" but in Chinese. How can I to explain the "convert_utf8_to_gb2312" ? Long long ago, I study C++ by Turbo C++, It can output the Chinese version "Hello world" just like Code::Blocks all versions before "svn 5342"
BTW, the ThreadSearch plugin couldn't work for the same file, I gust it was the same reason.
sorry for my broken English again..