Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-10

UTF-16 to hexadecimal string output

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 7 lines
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

Reply by email