How do I see the current encoding of a file in Sublime Text?

前端 未结 6 1504
广开言路
广开言路 2020-11-30 16:37

How do I see the current encoding of a file in Sublime Text?

This seems like a pretty simple thing to do but searching has not yielded much. Any pointers would be ap

6条回答
  •  粉色の甜心
    2020-11-30 17:17

    For my part, and without any plug-in, simply saving the file either from the File menu or with keyboards shortcuts

    CTRL + S (Windows, Linux) or CMD + S (Mac OS)

    briefly displays the current encoding - between parentheses - in the status bar, at the bottom of the editor's window. This suggestion works in Sublime Text 2 and 3.

    Note that the displayed encoding to the right in the status bar of Sublime Text 3, may display the wrong encoding of the file if you have attempted to save the file with an encoding that can't represent all the characters in your file. In this case you would have seen an informational dialog and Sublime telling you it's falling back to UTF-8. This may not be the case, so be careful.

提交回复
热议问题