Share via


How to display Japanese characters that are part of the source code comments?

Question

Monday, October 23, 2017 1:38 PM

Hi,

I am working on a VB.NET solution with the complete code comments written in Japanese Language. When I open the solution in VS2017 the Japanese characters are not readable instead it display as a sequence of meaningless characters like - à–¾FNCAP‰¹—p‚̃XƒŒƒbƒh

Require help in understanding the steps/settings to be followed in VS2017 IDE so as make the Japanese characters visible for the entire solution/project.

Thanks

Arun Kumar M

Arun Kumar M

All replies (3)

Monday, October 23, 2017 5:08 PM

Try right-clicking the file in Solution Explorer, then “Open With…”, choose “Source Code (Text) Editor With Encoding”. In next dialog, select the appropriate Japanese encoding.


Tuesday, October 24, 2017 5:03 AM

Unable to see "Source Code (Text) Editor With Encoding" option by following the above steps.

Arun Kumar M


Wednesday, October 25, 2017 8:41 AM

Hi,

Please have a look at the thread: https://stackoverflow.com/questions/210547/displaying-japanese-fonts-in-source-code-using-visual-studio

I found a general solution to the problem. This worked for me in Chinese text for Visual Studio 2013 and Windows 8.1.

per https://msdn.microsoft.com/en-us/library/ms246590.aspx

  1. As Administrator Click Start, click Control Panel, and then open Regional and Language Options (or Region in Windows 8).
  2. Click the Advanced tab. (or Administrative in Windows 8)
  3. In the Select a language to match the language version of the non-Unicode programs you want to use list, select the language you are currently using.
  4. click ok

Best regards,

Joyce

Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.