how to configure windows(cmd) to show utf-8 font?

8,633 views
Skip to first unread message

xf wang

unread,
Aug 18, 2010, 4:50:01 AM8/18/10
to golan...@googlegroups.com
how to configure windows(cmd) to show utf-8 font?

or 

how to show gbk font by golang?


Paulo Pinto

unread,
Aug 18, 2010, 8:57:28 AM8/18/10
to golang-nuts

dworld

unread,
Aug 19, 2010, 2:28:25 AM8/19/10
to golang-nuts
chcp 65001

fango

unread,
Aug 19, 2010, 5:34:25 AM8/19/10
to golang-nuts
This urges me to finish up my Acme-sac with Chinese font.

Try http://code.google.com/p/ac-me/downloads/detail?name=acme.zip

unzip it to c:\acme, also unzip Go windows to c:\go, then fire up c:
\acme\go.bat, follow 'welcome.cn' which should be shown at start.

Acme rocks.

- fango

dlin

unread,
Mar 7, 2012, 9:01:00 PM3/7/12
to golan...@googlegroups.com
This is old and can not work.

fango於 2010年8月19日星期四UTC+8下午5時34分25秒寫道:

Andy Balholm

unread,
Mar 7, 2012, 10:29:56 PM3/7/12
to golan...@googlegroups.com
Conversion between UTF-8 and GBK is available at code.google.com/p/mahonia

But for most uses you're probably better off using UTF-8.

dlin

unread,
Mar 7, 2012, 10:50:43 PM3/7/12
to golan...@googlegroups.com
AndyBalholm,
You mis-understood my meaning. Also, then acme is not proper.

I still ask the same question "how to configure windows(cmd) to show utf-8 font".

I found the exist solution is ugly.  It can not display smooth.
chcp 65001 + add reg + install another font + reboot.

I found liteide http://code.google.com/p/golangide/ maybe better temp solution. 
Show reulst inside the IDE.


Joseph Poirier

unread,
Mar 8, 2012, 12:14:14 AM3/8/12
to dlin, golan...@googlegroups.com

Mintty - Comprehensive character encoding support, including UTF-8
http://code.google.com/p/mintty/

Andy Balholm

unread,
Mar 8, 2012, 11:05:43 AM3/8/12
to golan...@googlegroups.com
On Wednesday, March 7, 2012 7:50:43 PM UTC-8, dlin wrote:
You mis-understood my meaning.

I think you misunderstood mine.

Originally you had asked "how to configure windows(cmd) to show utf-8 font? or how to show gbk font by golang?"
I was answering your second question: If you want to write a Go program with GBK output, you will need to use a character-set conversion library. I recently added GBK support to Mahonia.
Reply all
Reply to author
Forward
0 new messages