Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 echo 命令在终端中创建 jsx 文件时,这些文件显示字符错误,尽管我在第一行没有错误。
错误:
答:当我们在终端中使用 echo 命令创建 jsx 文件时,这些文件会转换为 UTF-16,这样会创建一个无法编译的字符。它以字符错误的形式返回给我们。需要将 vscode (Visual Studio Code) 的解决方案设置为 UTF-8。
解决方案图片