how to encode Chinese characters?

This is a discussion on how to encode Chinese characters? within the C++ Programming forums, part of the General Programming Boards category; Hello i have downloaded a c++ code from a chinese site,a part of code is like this: Code: #define max_x ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21