Add non UTF-8 encoding support

This commit is contained in:
Hiroaki Mizuguchi
2019-08-07 18:08:15 +09:00
parent 949efec008
commit 511f12d368
4 changed files with 18 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ import (
"regexp"
"sync"
"time"
"golang.org/x/text/encoding"
)
type Connection struct {
@@ -35,6 +37,7 @@ type Connection struct {
PingFreq time.Duration
KeepAlive time.Duration
Server string
Encoding encoding.Encoding
RealName string // The real name we want to display.
// If zero-value defaults to the user.