使用Visual Studio在源代码中显示日语字体 [英] Displaying Japanese fonts in source code using Visual Studio

查看:732
本文介绍了使用Visual Studio在源代码中显示日语字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些带有日语注释的源文件.当我在Visual Studio中打开这些文件时,它们看起来像这样:

I have some source files that have comments written in Japanese. When I open these files in Visual Studio they appear like this:

à–¾FNCAP‰¹—p‚̃XƒŒƒbƒh

我使用的是WinXP的英文版,但是有没有办法让Visual Studio显示实际的日语字符,而不是当前显示的乱码?

I am using the English version of WinXP, but is there a way to get Visual Studio to display the actual Japanese characters rather than the random jibberish it currently is?

推荐答案

大概是VS正在使用错误的编码来解释文件.

Presumably VS is interpreting the file with the wrong encoding.

使用文件->打开->文件...->打开->打开方式...->具有编码的源代码(文本)编辑器"重新打开它,然后尝试各种编码.

Reopen it using "File -> Open -> File... -> Open -> Open With... -> Source Code (Text) Editor With Encoding" and try various encodings.

这篇关于使用Visual Studio在源代码中显示日语字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆