Lister – set multimedia (.rtf) encoding
Moderators: white, Hacker, petermad, Stefan2
Lister – set multimedia (.rtf) encoding
Lister is able to open .rtf files but how to set encoding for this opening?
You’re wrong!
Well,
files are okay in terms of WordPad. Typically the characters “č”, “ř”, “ž”, “ě” ale decoded badly in Lister.
files are okay in terms of WordPad. Typically the characters “č”, “ř”, “ž”, “ě” ale decoded badly in Lister.
Wordpad don't report errors when opening broken and incomplete files. It may just stop at the place when parsing fails. What is more, Wordpad may break or fix files during editing.
Or maybe the files are really old and use non-Unicode fonts, so:
1. Try to open the file in Libre Office. If LO reports error, then the file is broken.
2. If the file opens in LO, open it in Wordpad, make any edit, save file with a new name and see if Lister displays it OK.
3. Repeat step 2 in LO and you will probably see that:
- Lister displays some accented characters at the top of the file.
- Lister uses default LO font instead of font used in rtf file.
4. Open file generated by LO in Wordpad and you will probably see a picture like described in p.3, but a little bit different:
- Wordpad doesn't display accented characters at the top.
- Wordpad uses default LO font to display text, but on the font toolbar you will see fonts used in the old rtf file.
Now you should understand that both TC/Lister and Wordpad use system control riched20.dll to display rtf files. This lib is broken in most Windows versions/updates and MS aren't going to fix it (they recommend to use MS Office that comes with its own richedit control).
So what is your suggestion?
Or maybe the files are really old and use non-Unicode fonts, so:
1. Try to open the file in Libre Office. If LO reports error, then the file is broken.
2. If the file opens in LO, open it in Wordpad, make any edit, save file with a new name and see if Lister displays it OK.
3. Repeat step 2 in LO and you will probably see that:
- Lister displays some accented characters at the top of the file.
- Lister uses default LO font instead of font used in rtf file.
4. Open file generated by LO in Wordpad and you will probably see a picture like described in p.3, but a little bit different:
- Wordpad doesn't display accented characters at the top.
- Wordpad uses default LO font to display text, but on the font toolbar you will see fonts used in the old rtf file.
Now you should understand that both TC/Lister and Wordpad use system control riched20.dll to display rtf files. This lib is broken in most Windows versions/updates and MS aren't going to fix it (they recommend to use MS Office that comes with its own richedit control).
So what is your suggestion?
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Issue solved
Lister is okay.
Issue was cause by setting “Use Unicode UTF-8 for worldwide language support”. See Image: https://sourceforge.net/p/sevenzip/feature-requests/_discuss/thread/926aad4b/1b8f/324e/attachment/4.png.
Issue was cause by setting “Use Unicode UTF-8 for worldwide language support”. See Image: https://sourceforge.net/p/sevenzip/feature-requests/_discuss/thread/926aad4b/1b8f/324e/attachment/4.png.
- ghisler(Author)
- Site Admin
- Posts: 48048
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I see - in this case, the options "Default" and "ANSI" in Lister would also mean Unicode. You should be able to use ANSI by choosing a specific encoding like "Western".
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com