Displaying Japanese fonts in source code using Visual Studio

前端 未结 7 2414
栀梦
栀梦 2021-01-02 05:04

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
         


        
7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 05:56

    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.

提交回复
热议问题