vs code close and re-open the file vue Chinese garbage problem solving

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/mynewdays/article/details/99620554

In vs code, create .vue file, template input Chinese, off and on, garbled.

When the reason to save time utf-8 format, and open windows 1252 to encode.

solution:

1) Set utf-8 format using open and save files

2) prohibit tool automatically guess the file encoding

 

File -> Preferences - "setting, and then search for" encode "

Guess you like

Origin blog.csdn.net/mynewdays/article/details/99620554