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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Multi-language??

Multi-language??

Scheduled Pinned Locked Moved C#
questionjsontutorial
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.
  • R Offline
    R Offline
    Rohit Dev
    wrote on last edited by
    #1

    hai,,, is there any particular function by which i can directly use unicode in API.. for eg: StaticObjects.[lIndex] = "बीच की रेखा"; "बीच की रेखा" is language hindi.. but when i run the code, instead of hindi it shows "??????" in those places... how can i solve this...? while debugging it for the first time its showing warning----- "some unicode charecters in ths file could not be saved in the current code page. Do you want to resave this file as Unicode in order to maintain your data?" how to solve this

    L 1 Reply Last reply
    0
    • R Rohit Dev

      hai,,, is there any particular function by which i can directly use unicode in API.. for eg: StaticObjects.[lIndex] = "बीच की रेखा"; "बीच की रेखा" is language hindi.. but when i run the code, instead of hindi it shows "??????" in those places... how can i solve this...? while debugging it for the first time its showing warning----- "some unicode charecters in ths file could not be saved in the current code page. Do you want to resave this file as Unicode in order to maintain your data?" how to solve this

      L Offline
      L Offline
      lmoelleb
      wrote on last edited by
      #2

      The .NET Framework is using Unicode. You need to check: 1) Is your source file actually saved as Unicode (if you can open the file again and the text is fine, it is saved in Unicode). If not, manually save the file with Unicode - Advanced Save Options on the File menu in VS2005) 2) Where are you outputting the text. The Console will NOT run Unicode by default (you can try to mess with the command "chcp").

      R 1 Reply Last reply
      0
      • L lmoelleb

        The .NET Framework is using Unicode. You need to check: 1) Is your source file actually saved as Unicode (if you can open the file again and the text is fine, it is saved in Unicode). If not, manually save the file with Unicode - Advanced Save Options on the File menu in VS2005) 2) Where are you outputting the text. The Console will NOT run Unicode by default (you can try to mess with the command "chcp").

        R Offline
        R Offline
        Rohit Dev
        wrote on last edited by
        #3

        hai.. yes the files is saving as unicode only.... i am displaying this in an ordinary form, which is a child form to a main form. i tried in a single form on button click i am able to disply the value. but on formload i am not able to display it.? can u help me out in this... thanks in advance... Regards

        L 1 Reply Last reply
        0
        • R Rohit Dev

          hai.. yes the files is saving as unicode only.... i am displaying this in an ordinary form, which is a child form to a main form. i tried in a single form on button click i am able to disply the value. but on formload i am not able to display it.? can u help me out in this... thanks in advance... Regards

          L Offline
          L Offline
          lmoelleb
          wrote on last edited by
          #4

          If you save the source as UTF-8, try UTF-16 instead. No, it should not matter, but you should not have the problem in the first place. Besides that I can't really offer any help as I do not even know HOW you are trying to display the text (caption of a dialog, messagebox, TextOut in draw command, label control, etc.

          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