[Mono-dev] SqlClient and cp1250 patch
Andrzej Kurzeja
andyx_x at o2.pl
Thu May 4 06:56:47 EDT 2006
Hello
When connecting to database via SqlClient with codepage 'windows-1250' there is no encoding initiated. This patch fixes problem.
Andy
===================================================================
--- Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs (rev 1.1.15)
+++ Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs (my)
@@ -1504,7 +1504,7 @@
if (charset == null || charset.Length > 30)
charset = "iso_1";
- if (this.charset != null && this.charset != charset)
+ if (this.charset != null && this.charset == charset)
return;
if (charset.StartsWith ("cp")) {
===================================================================
More information about the Mono-devel-list
mailing list