Explorar o código

* Correct encoding

Michael VAN CANNEYT %!s(int64=2) %!d(string=hai) anos
pai
achega
380e63defd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/fcl-web/src/jwt/fpjwt.pp

+ 2 - 2
packages/fcl-web/src/jwt/fpjwt.pp

@@ -609,7 +609,7 @@ Var
   PL : PPropList;
   I,VI,Count : Integer;
   VF : Double;
-  C : Char;
+  C : AnsiChar;
   CW : WideChar;
   I64 : Int64;
   W : UnicodeString;
@@ -631,7 +631,7 @@ begin
             end;
           tkChar :
             begin
-            C:=Char(GetOrdProp(Self,P));
+            C:=AnsiChar(GetOrdProp(Self,P));
             if All or (C<>#0) then
               if C=#0 then
                 JSON.Add(p^.Name,'')