What do you mean? %LINE% returns ... well, a number; and "number" characters are exactly the same no matter what encoding you use (except Wide/UnicodeString, of course): #$30..#$39
Hm.
I currently have the situation that UTF8 chars are sometimes shown correctly, sometimes not, in a txt file.
And I did not jet find the reason why this happens ..
Z:\MIDI 2019-03-05\Bekannter Künstler\Queen-WeWillRockYou.mid
Z:\MIDI 2019-03-05\Bekannter Künstler\Queen-WeWillRockYou.mid
As this is written into a TStringList ( by MyStringlist.add( ... ) )
then into a DEBUG text file ( by MyStringlist.SaveToFile( ..) )
I didn't spend much time on this issue jet ..
Edit: I read in the current DEBUG text file with NotePad++ and it says, Encoding = "ANSI" ..
.. Now I picked an older DEBUG text file from backup, and NotePad++ says, it's "UTF8 without BOM"