gizak / termui

Golang terminal dashboard
MIT License
13.14k stars 787 forks source link

List render Unicode error. #93

Closed tajoy closed 7 years ago

tajoy commented 8 years ago

Hey,

I'm go run the demo "_example/list.go", and i got this below: image

I think it something wrong, and i want use this library to show my log by some rune text. e.g "你好, 日志".

Some helpful information:

C:\>go env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=...
set GORACE=
set GOROOT=E:\Go
set GOTOOLDIR=E:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1

C:\>go version
go version go1.6.2 windows/amd64

C:\>systeminfo
...
OS Version:          6.1.7601 Service Pack 1 Build 7601
OS Productor:        Microsoft Corporation
OS Class:         x64-based PC
Processor:           Installed 1 Processor。
                  [01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~2501
...

thx for made this amazing library :)

gizak commented 7 years ago

Hi @tajoy On Windows you should try set codepage as utf-8