Displaying Japanese fonts in source code using Visual Studio

前端 未结 7 2280
栀梦
栀梦 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:37

    You can also convert the text encoding to UTF-8 using Notepad++.

    1. Originally encoded as Shift-JIS:

      image1

    2. Convert to UTF-8:

      image2

    3. Save file.

    It should now display correctly regardless of local region.

提交回复
热议问题