[Lazarus] UTF-16 to hexadecimal string output
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Oct 6 16:53:16 CEST 2015
On Tue, 6 Oct 2015 15:35:41 +0100
Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:
> Hi
>
> Does Lazarus have a function that can convert UnicodeString (UTF-16
> encoding) to hexadecimal string output?
>
>
> some_utf16_text -->> 4E6F762073686D6F7A206B....
Maybe dbgMemRange of LazLoggerBase helps:
ws:='some_utf16_text';
debugln('ws=',dbgMemRange(Pointer(ws),length(ws)*2));
ws=73006F006D0065005F00750074006600310036005F007400650078007400
Mattias
More information about the Lazarus
mailing list