Solved

View Kanji in Visual Studio 6 Source Code Editor on Win2K

Posted on 2004-08-06
4
460 Views
Last Modified: 2010-04-14
Hi,

I got some Japanese source code that I am working on in Visual Studio 6 on Win2K. The code contains some comments written in Japanese. However, the Visual Studio source code editor does not display the kanji correct, it's all a big mess that even effects soem parts of the code since the editor sometimes cannot interprete the end of a Japanese comment correctly.

Here is what I've tried so far:
- Installed Japanese language support for Win2K
- Switched the Windows locale to Japanese (this should affect only date and time settings, so it was a useless try)


Any ideas how to display the Japanese comments?

To avoid misunderstandings (just in case): I do NOT want to write a programm that supports Japanese. I want to VIEW source code that has some Japanese comments in it.
0
Comment
Question by:hirnsieb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Expert Comment

by:YarnoSG
ID: 11735027
Have you tried opening up the code OUTSIDE the editor, say in NOTEPAD {Right-Click | Open With....}?

 -  since you have installed language support on your WIN2K this should work, and since you are trying to read the comments and not compile, you might be able to get what you need this way...
0
 
LVL 1

Author Comment

by:hirnsieb
ID: 11735723
Yes, I tried. But it looks excactly the same as in the Visual Studio editor.

I have been successfully working with Japanese on Windows XP and Visual Studio .NET. But on Win 2K and Visual Studio 6 I just can't get it working.

By the way, I also need to compile the code which also depends on the interpretation of the comments: in several cases the compiler/editor doesn't interprete the end of the comments correctly and some parts of the code get lost (they are interpeted as a comment)
0
 
LVL 7

Expert Comment

by:YarnoSG
ID: 11735799
Have you just tried making a copy of the code and stripping out the comments?

Also, try a more robust text editor like WORD that lets you change languages and has more FONT support.
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 11736900
Well, it *should* work 'out of the box' - see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_mbcs_support_in_visual_c.2b2b.asp ("MBCS Support in Visual C++"):

"When run on an MBCS-enabled version of the Windows 95 or Windows NT operating system, the Visual C++ development system, including the integrated source code editor, debugger, and command line tools, is completely MBCS-enabled. Visual C++ will accept double-byte characters wherever it is appropriate to do so. This includes path names and file names in dialog boxes, and text entries in the Visual C++ resource editor (for example, static text in the dialog editor and static text entries in the icon editor). In addition, the preprocessor recognizes some double-byte directives ? for example, file names in #include statements, and as arguments to the code_seg and data_seg pragmas. In the source code editor, double-byte characters in comments and string literals are accepted, although not in C/C++ language elements (such as variable names)."
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Read the original post on Monitis Blog. Believe it or not, the most important thing about the website of your business is not what’s on it but how fast it loads. Yes, that’s right!    As you can see on this infographic (an oldie but goodie!), …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question