Skip to content

Commit 40d13e6

Browse files
setting default encoding to UTF8
1 parent e3b8ead commit 40d13e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/classes/DBOpsHelper.class.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ class DBOpsHelper {
137137
$encoding = [System.Text.Encoding]::UTF7
138138
}
139139
else {
140-
$encoding = [System.Text.Encoding]::ASCII
140+
$encoding = [System.Text.Encoding]::UTF8
141141
}
142142
return $encoding.GetString($Array, $skipBytes, $Array.Length - $skipBytes)
143143
}
144144
# scrubs nulls from the datatable
145-
static [PSObject] DataRowToPSObject([DataRow] $row){
145+
static [PSObject] DataRowToPSObject([DataRow] $row) {
146146
$psObject = [PSObject]::new()
147147
if ($null -ne $row -and $row.RowState -and $row.RowState -ne [DataRowState]::Detached) {
148148
foreach ($column in $row.Table.Columns) {

0 commit comments

Comments
 (0)