Browse Source

* Merging revisions 42344 from trunk:
------------------------------------------------------------------------
r42344 | michael | 2019-07-08 12:27:11 +0200 (Mon, 08 Jul 2019) | 1 line

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

git-svn-id: branches/fixes_3_2@42851 -

michael 6 years ago
parent
commit
fb0ce8bc32
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;