neslib / Neslib.Json

Fast and memory-efficient JSON for Delphi
Other
79 stars 23 forks source link

UTF8 encoding #14

Closed holgerflick closed 2 years ago

holgerflick commented 2 years ago

I am not 100% certain to make the framework work with UTF8 content. I was under the impression that UTF8 would be used if the the string provided to parse is prepared correctly. So I use this:

 LDoc := TJsonDocument.Parse( TEncoding.UTF8.GetString( ABytesArray ) );

Still, my content does not show unicode content correctly in a VCL app. So, I am wondering where I am not configuring it correctly.

holgerflick commented 2 years ago

The issue was the UI control used. TDataset still need TWideStringField as field type to show Unicode. I was under the false impression that TStringField would be Unicode as well.