go 语言在windows环境下不能正确显示中文
编译时出现以下错误
尝试编辑内容
源代码:package main
import "fmt"
func main(){
fmt.Println("hello,世界")
}
编译运行:D:\work\go src>go run hello.go
# command-line-arguments
.\hello.go:4: illegal UTF-8 sequence
ca c0
.\hello.go:4: illegal UTF-8 sequence
bd e7
撸腿毛
12 years, 6 months ago