Sublime Forum

How does Build Systems print the correct encoding?

#1

My simple setup,

{
 "cmd": ["java", "$file"],
 "selector": "source.java"
}

My computer is a Chinese environment, sublime produces inconsistent encoding output, how can I correct this error?

Here are some Build Systems documentation, but I am a newbie. Need someone to remind me?
docs.sublimetext

0 Likes

编译c++出现中文乱码
#2

See: https://www.sublimetext.com/docs/3/build_systems.html

This should do for UTF-8

{
    "cmd": ["java", "$file"],
    "selector": "source.java",
    "encoding": "utf-8"
}
2 Likes