The hex representation of my input data (memo1) is (as copied from the object inspector):
61 62 63 20 E5 E4 F6 20 F6 E4 E5 0D 0A E5 0D 0A E4 0D 0A F6 0D 0A
which doesn't look like unicode.
Now you got me confused.
The hexadecimal representation of that string is indeed NOT unicode.
However, the Lazarus IDE is fully UTF8, so any content from a memo inside Lazarus (actually LCL) must be UTF8.
So how did you get the Hex representation?
Did you copy/paste it to some other editor (or even Lazarus IDE, but you set encoding of source to ISO/IEC 8859-1) and then started to "hexify" it, or did you use some other tool?
Just a test:
I assume this is the test string?
abc åäö öäå
å
ä
ö
If I put the above text in a TMemo and then "hexify" it I get this:
61 62 63 20 C3 A5 C3 A4 C3 B6 20 C3 B6 C3 A4 C3 A5 0D 0A C3 A5 0D 0A C3 A4 0D 0A C3 B6 0D 0A
Which is distictly different from your Hex representation (and it shows it is Utf8).
Bart