0

file open in vscode: vscode showing

        <BillCard
          title={"医疗分期"}
          status={item.applyStatus}

file open in sublime Text sublime text

<Wrapper key={index}>
        <BillCard
          title={"医疗分期"}
          status={item.applyStatus}

already setted "files.autoGuessEncoding": true, in setttings.json of vscode.

and it is *.jsx file

not sure why it would happen

Kilims
  • 71
  • 6
  • 1
    In 2020 I would not guess unless I have a reason to. Just set the default encoding (or at least the project encoding) to UTF-8. – Álvaro González May 11 '20 at 09:50
  • Does this answer your question? [Change the encoding of a file in Visual Studio Code](https://stackoverflow.com/questions/30082741/change-the-encoding-of-a-file-in-visual-studio-code) – Álvaro González May 11 '20 at 15:25

1 Answers1

0

Make sure your file encoding is set to UTF-8.

In VSCode you can open that file and press + Ctrl/⌘ + P, then search change file encoding and select UTF-8.

Hao Wu
  • 17,573
  • 6
  • 28
  • 60