I found some problems viewing UTF-8 text files in the Lister.
One thing I could isolate to a small example is the following:
Two Files, both with BOM, both with (the same) Cyrillic letters, one with a back-stepping accent, one without. One is shown as Cyrillic, the other one as black boxes.
These is the content in hex with accent (correct letters but accent without backspace, it should be over the а, shown correctly e.g. in notepad):
EF BB BF D0 90 D0 BB D0 B5 D0 BA D1 81 D0 B0 CC 81 D0 BD D0 B4 D1 80
The content should read "Алекс́андр"
And this without (shown as boxes in Lister, shown correctly e.g. in notepad:
EF BB BF D0 90 D0 BB D0 B5 D0 BA D1 81 D0 B0 D0 BD D0 B4 D1 80
The content should read "Александр"
To be sure to have the same files, this is the hex sequence:
EF BB BF D0 90 D0 BB D0 B5 D0 BA D1 81 D0 B0 D0 BD D0 B4 D1 80
EF BB BF D0 90 D0 BB D0 B5 D0 BA D1 81 D0 B0 CC 81 D0 BD D0 B4 D1 80
Interestingly, when pasting from notepad to Firefox, the accent moved from а to н, so obviously, notepad want's the modifier accent to be postfixed, while firefox interprets it as prefix. I think if the hex CC 81 is behind a letter the accent should be over this one.
I was testing this using TC 7.02a on German WinXP.
Problems showing UTF-8 in Lister
Moderators: white, Hacker, petermad, Stefan2
Problems showing UTF-8 in Lister
mfg, bb
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2bb
Could you please send me a zip or rar archive containing a text file with these names? TC converts all UTF-8 text to UTF-16 before displaying it, so maybe there is a problem with the conversion function...
Could you please send me a zip or rar archive containing a text file with these names? TC converts all UTF-8 text to UTF-16 before displaying it, so maybe there is a problem with the conversion function...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately I haven't received anything so far. Can you please try to re-send it? Please make sure to limit the size to 500kBytes max.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48130
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, got it now! Your e-mail was shown as "filtered" in mailwasher, but I saw it and could avoid its deletion. ![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com