Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Character Encoding in Visual Studio

Character Encoding in Visual Studio

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiotutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AesopTurtle
    wrote on last edited by
    #1

    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!

    M 1 Reply Last reply
    0
    • A AesopTurtle

      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!

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      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.

      A 1 Reply Last reply
      0
      • M Michael Dunn

        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.

        A Offline
        A Offline
        AesopTurtle
        wrote on last edited by
        #3

        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!

        M 1 Reply Last reply
        0
        • A AesopTurtle

          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!

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          C++ Character Constants[^]

          --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Dunder-Mifflin, this is Pam.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups