File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,12 @@ var Client = function(config) {
39
39
this . connection = c . connection || new Connection ( {
40
40
stream : c . stream ,
41
41
ssl : this . connectionParameters . ssl ,
42
- keepAlive : c . keepAlive || false
42
+ keepAlive : c . keepAlive || false ,
43
+ client_encoding : this . connectionParameters . client_encoding || 'utf8' ,
43
44
} ) ;
44
45
this . queryQueue = [ ] ;
45
46
this . binary = c . binary || defaults . binary ;
46
- this . encoding = 'utf8' ;
47
+ this . encoding = this . connectionParameters . client_encoding || 'utf8' ;
47
48
this . processID = null ;
48
49
this . secretKey = null ;
49
50
this . ssl = this . connectionParameters . ssl || false ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var Connection = function(config) {
39
39
this . lastOffset = 0 ;
40
40
this . buffer = null ;
41
41
this . offset = null ;
42
- this . encoding = 'utf8' ;
42
+ this . encoding = config . client_encoding || 'utf8' ;
43
43
this . parsedStatements = { } ;
44
44
this . writer = new Writer ( ) ;
45
45
this . ssl = config . ssl || false ;
You can’t perform that action at this time.
0 commit comments