Skip to content

Commit 9565161

Browse files
author
Kleber
committed
fixing encoding for utf-8 not english
1 parent 5c175c1 commit 9565161

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/MySql.Data/Field.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public MySqlField(Driver driver)
8585
connVersion = driver.Version;
8686
maxLength = 1;
8787
binaryOk = true;
88+
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
8889
}
8990

9091
#region Properties

Source/MySql.Data/project.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"System.Reflection.TypeExtensions": "4.1.0",
5454
"System.Security.Cryptography.X509Certificates": "4.1.0",
5555
"System.Net.Security": "4.0.0",
56-
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0"
56+
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0",
57+
"System.Text.Encoding.CodePages": "4.3.0"
5758
},
5859
"frameworks": {
5960
"netstandard1.3": {

0 commit comments

Comments
 (0)