Character Encoding in Visual Studio
-
Hi, I have a project that contains Korean characters in the code. When I open it with Visual Studio, those characters turn into alien. I figure it out that the character encoding in Visual Studio follows the setting of "Language for Non-Unicode Programs" in Regional and Language Options --> Advanced tab. If I change that language to Korean, the characters then display properly. However, every backslash sign (\) in my windows displays as Korean Won sign (struck out W sign). For example, the remote address \\192.68.0.1 will turn to WW192.168.0.1 (WW with strike out line). Is there any way to make Visual Studio display a specific encoding for a solution? (Open a file with specific encoding can be done with the options in open file dialog, but not for opening a solution.) Thank you very much.
KiT
Never wait for a chance to come, Believe in your own potential and go get it!
-
Hi, I have a project that contains Korean characters in the code. When I open it with Visual Studio, those characters turn into alien. I figure it out that the character encoding in Visual Studio follows the setting of "Language for Non-Unicode Programs" in Regional and Language Options --> Advanced tab. If I change that language to Korean, the characters then display properly. However, every backslash sign (\) in my windows displays as Korean Won sign (struck out W sign). For example, the remote address \\192.68.0.1 will turn to WW192.168.0.1 (WW with strike out line). Is there any way to make Visual Studio display a specific encoding for a solution? (Open a file with specific encoding can be done with the options in open file dialog, but not for opening a solution.) Thank you very much.
KiT
Never wait for a chance to come, Believe in your own potential and go get it!
Source code shouldn't contain any characters outside of ASCII. Use \x to escape any characters outside that range. Seeing W instead of \ is normal for Korean fonts.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.
-
Source code shouldn't contain any characters outside of ASCII. Use \x to escape any characters outside that range. Seeing W instead of \ is normal for Korean fonts.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.
Could I have more details on what \x does and how to work with it please? I understand that seeing W instead of \ for Korean fonts is normal. But it confused me sometimes. That's why I would like to keep my system encoding as English but let the VS display proper fonts (just like EditPlus does). Is there any way to accomplish that? Thank you very much.
KiT
Never wait for a chance to come, Believe in your own potential and go get it!
-
Could I have more details on what \x does and how to work with it please? I understand that seeing W instead of \ for Korean fonts is normal. But it confused me sometimes. That's why I would like to keep my system encoding as English but let the VS display proper fonts (just like EditPlus does). Is there any way to accomplish that? Thank you very much.
KiT
Never wait for a chance to come, Believe in your own potential and go get it!
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.