Thread: how to encode Chinese characters?

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    how to encode Chinese characters?

    Hello
    i have downloaded a c++ code from a chinese site,a part of code is like this:

    Code:
    #define max_x   127       //x·½ÏòµÄ½ÚµãÊýÁ¿
    #define max_y   127       //y·½ÏòµÄ½ÚµãÊýÁ¿
    #define t_max   200000    //Ñ..»·µÄ×î´óʱ¼ä²½
    #define nu      0.00252   //Ô˶¯Õ³¶È£¬Í¨¹ýµ÷½Úð¤¶È¸Ä±äReynoldÊý
    as you see the descriptions after // are not in english language and are not displayed correctly ,how can view them in their original chinese format so i can translate them from chinese to english with google translator?
    is there and character encoding in microsoft visual studio 2008?
    thanks in advance

  2. #2
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    According to MSDN, you need to install Windows language packs to view international text.

    How-to: Install East Asian language files on your computer

    I personally haven't had a need to do this, so I don't know how well it works. But I'm pretty sure you can just open the file in a word processor (Office has its own language support) and the characters will display correctly. Most Linux distros also have built-in support for other languages. (Yeah, it's probably not a valid reason to get linux just to view these mysterious comments, but hey, it can't hurt.)
    Consider this post signed

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-16-2009, 06:00 AM
  2. Replies: 1
    Last Post: 03-21-2009, 02:32 AM
  3. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. Chinese characters
    By madmandan in forum Windows Programming
    Replies: 3
    Last Post: 07-10-2002, 06:19 AM