Invalid language code page detection.
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 7
- Joined: 2009-06-17, 08:05 UTC
Invalid language code page detection.
Internal Lister's viewer (by F3) of Total Commander 7.04 (and early too) wrong autodetect some cyrilic-coded (Win866 or OEM DOS) texts. Below I put simple example of this file - you need save this text (between <begin file> and <end file>) as ASCII - DOS encoded:
<begin file>
C:\WINDOWS\system32>xcopy /z \\srv1\repl\Export \\srv2\repl\Import /E /S /Y /D
Скопировано файлов: 0.
07.02.2008
06:11
<end file>
To viewing this file as cyrillic text I need after opening file by pressing <F3>-key - press <S>-key to switch to ASCII DOS encoding.
Many other editors (AkelPad, as example) autodect this DOS-coded files without any problems.
<begin file>
C:\WINDOWS\system32>xcopy /z \\srv1\repl\Export \\srv2\repl\Import /E /S /Y /D
Скопировано файлов: 0.
07.02.2008
06:11
<end file>
To viewing this file as cyrillic text I need after opening file by pressing <F3>-key - press <S>-key to switch to ASCII DOS encoding.
Many other editors (AkelPad, as example) autodect this DOS-coded files without any problems.
Last edited by rstaganrog on 2009-06-17, 10:51 UTC, edited 1 time in total.
-
- Junior Member
- Posts: 7
- Joined: 2009-06-17, 08:05 UTC
Re: Invalid language code page detection.
<post modified>
7.50 countinued autodetection problem
7.50 countinued autodetection problem
Last edited by rstaganrog on 2009-06-17, 12:20 UTC, edited 1 time in total.
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
When I try to save it an ASCII text file, it doesn't save it right as it needs to be saved as Unicode. Otherwise I get ????? in place of the second line.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
-
- Junior Member
- Posts: 7
- Joined: 2009-06-17, 08:05 UTC
My example has a russian text, which you see as ?????.Boofo wrote:When I try to save it an ASCII text file, it doesn't save it right as it needs to be saved as UTF. Otherwise I get ????? in place of the second line.
I want to place link to my example file, but forum engine block it...

Last edited by rstaganrog on 2009-06-17, 12:39 UTC, edited 1 time in total.
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
It shows Russian text in your post fine. I just can't save it as an ASCII text file. Editplus tells me I will lose some formatting if I choose ASCII. It has to be saved as Unicode on my system to be able to see the Russian text.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
-
- Junior Member
- Posts: 7
- Joined: 2009-06-17, 08:05 UTC
link to my file:
content5.files.mail.ru/X37BO6/445efc317508491fbbf192260948ad8a
content5.files.mail.ru/X37BO6/445efc317508491fbbf192260948ad8a
Last edited by rstaganrog on 2009-06-17, 14:01 UTC, edited 1 time in total.
-
- Junior Member
- Posts: 7
- Joined: 2009-06-17, 08:05 UTC
- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I will not work on this problem for now because there are simply too many languages to consider.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Power Member
- Posts: 556
- Joined: 2006-04-01, 00:11 UTC
That's an old problem... If you frequently work with files in DOS-866 codepage, you should use external viewer or editor instead of Lister (maybe written especially for 866 codepage).rstaganrog wrote:Internal Lister's viewer (by F3) of Total Commander 7.04 (and early too) wrong autodetect some cyrilic-coded (Win866 or OEM DOS) texts.
You can save texts with symbols not from your current codepage only as Unicode. For example, user with RU codepage can't save some German symbols as ASCII text - which is absent in RU ASCII table.Boofo wrote:It shows Russian text in your post fine. I just can't save it as an ASCII text file. Editplus tells me I will lose some formatting if I choose ASCII.
I think it will be great in such cases to have possibility to setup codepage delection rules for each codepage manually.