User forums > Using Code::Blocks
Can not open a header file in codeblocks
ollydbg:
Hi, I'm using codeblocks svn 5382 and windows xp.
It seems that I can't open a header file(It is a header file in the Opencv library). Nothing appeared in the source window.
I can open it with NOTEPAD++.
So, is there something wrong with the Encoding? I have tried several types, but still can't open it.
I add the header file as a zip file.
Could you help me?
Thank you!
[attachment deleted by admin]
Jenna:
Did you try to use UTF-8 as default-encoding ?
ollydbg:
Yes, I have tried, but still can't see anything :(
Thanks.
ollydbg:
Hi, I found that some file still can't be opened in code::blocks. svn5382.
I'm using windows xp simplified Chinese edition. See the screen shot below.
[attachment deleted by admin]
starofrainnight:
I has been met this situation before, you could try to set "Default encoding when opening files" to ISO-8859-1, and restart code::blocks. Then, try to just open the specific file by code::blocks.
Or, you could convert all these invisible files from encoding "ISO-8859-1" to "UTF-8" through iconv program (Be Careful!!).
I don't know if this help, God Bless! :lol:
It seems that code::blocks recognize the ISO-8859-* as UTF-8 (when you set the default encoding to UTF-8), and there have some characters couldn't recognize by UTF-8 encoding, code::blocks sucks then.... ( Notepad++ will skip it off )
Navigation
[0] Message Index
[#] Next page
Go to full version