Solved

View Kanji in Visual Studio 6 Source Code Editor on Win2K

Posted on 2004-08-06
4
455 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
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

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…
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now