Sublime opens file with EUC-JP encoding

Asked

Viewed 1,406 times

1

When saving files with special characters in Sublime, with UTF-8. Ex:

Reading Tip: From Heart to Heart

It reopens with EUC-JP encoding:

Reading Tip: From Cora 巽 達 o to Cora 巽 達 o

What can it be?

I have the Converttoutf8 plugin, it converts and saves correctly, but when reopening, change the encoding.

  • 1

    There is the possibility to save the file with UTF-8 BOM (Byte Order Mark)?

  • That works, thank you.

  • There would be a way to fix this just by using utf-8?

  • UTF-8 BOM is an official part of UTF-8 (although it is optional). For the rest, it is up to the application to guess the encoding. I don’t use Sublime so I don’t know how to force the application to use the right encoding.

  • You can give a "File > Reopen File with Encoding", you can also check in the preferences if this "EUC-JP" is set as default.

1 answer

1

In user Settings you could set these two parameters:

"default_encoding": "UTF-8",
"fallback_encoding": "UTF-8",

I believe this can solve your problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.