Reputation: 16002
We know google's Go default is UTF-8. I found in my Windows XP. It can not display correct about the UTF-8. The following code display in wrong.
package main
func main() {
println("中文")
}
I've googled. It said use another font + reg + chcp 65001. But, I failed.
I've tried cmd and powershell v1 (it is the only provide version under XP). Both can NOT display well.
Upvotes: 3
Views: 1273
Reputation: 16002
Upvotes: 1
Reputation: 5407
I will try this the next time I'm at a Windows XP machine. I develop mostly on Win 7 and CentOS. One thought, cmd.exe is awfully old on Windows XP. I wonder if it would work better if run from PowerShell. Also, in the last couple days I've switched to using MSys on Windows so that I can take advantage of unified makefiles on Linux and Windows. I'll post an update if I get the command to work on XP or 7.
Upvotes: 0