Browse Source

* Fix bug ID #35796, codepage issue when getting string as variant

git-svn-id: trunk@42344 -
michael 6 years ago
parent
commit
ebd005d1a7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/fcl-db/src/base/fields.inc

+ 3 - 0
packages/fcl-db/src/base/fields.inc

@@ -1202,7 +1202,10 @@ var s : rawbytestring;
 
 begin
   If GetValue(s) then
+    begin
+    SetCodePage(s, CP_ACP, True); 
     Result:=s
+    end
   else
     Result:=Null;
 end;