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