2tommy0910
You can also instead do it via configuring Lister's "Define view method by file type" and set the value for *.txt files to 7:
See: https://madsenworld.dk/tcmd/listertextasutf8.png
.
Lister and UTF-8 option
Moderators: Hacker, petermad, Stefan2, white
Re: Lister and UTF-8 option
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Now, how to quick-view HTML + UTF8 --- together?
As per Petermads suggestion, "Define view method by file type",
I can now see UTF-8 files by default,
but now HTML files aren't being formatted as Text ("strip tags" view option = 5 )
"<body><p>hello <b>world</b></p>" -> "hello world"
What I tried:
Image: https://pasteboard.co/L8qhu65ai1Ey.png
undesired example: UTF8=yes, HTML=No.
Image: https://pasteboard.co/wla4PjY2EYlb.png
is that possible internally?
or with a plugin?
I can now see UTF-8 files by default,
but now HTML files aren't being formatted as Text ("strip tags" view option = 5 )
"<body><p>hello <b>world</b></p>" -> "hello world"
What I tried:
- strip HTML tags, codepage=UTF-8:
Code: Select all
%COMMANDER_EXE% /S=L:C65001T5
- setting both UTF-8 and HTML at the same time:
Code: Select all
%COMMANDER_EXE% /S=L:T7T5
Image: https://pasteboard.co/L8qhu65ai1Ey.png
undesired example: UTF8=yes, HTML=No.
Image: https://pasteboard.co/wla4PjY2EYlb.png
is that possible internally?
or with a plugin?
Re: Lister and UTF-8 option
You cannot put %COMMANDER_EXE% or other programs in for the plugin, you can only use what is available when you click the [+] button in the dialog where it says: "Please choose default view modes" see upper right corner of the screenshot: https://madsenworld.dk/tcmd/listertextasutf8.pnghere:
Image: https://pasteboard.co/L8qhu65ai1Ey.png
So instead of %COMMANDER_EXE% /S=L:T7T5 you should put in:
Code: Select all
5,7
If the .html file has the proper meta tag:
Code: Select all
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
While in mode 5 you can force UTF-8 by pressing 7.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar