Russian ANSI text files garbled in lister

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
nemadeka
Junior Member
Junior Member
Posts: 86
Joined: 2009-04-26, 19:44 UTC

Russian ANSI text files garbled in lister

Post by *nemadeka »

When I use Lister to view a file in Russian, initially I get garbage
http://nemadeka.com/commander/Initial_lister_view.gif
and have to press the 'S' key to be able to read the text.

The other 2 packages display the text correctly without additional effort:
http://nemadeka.com/commander/Initial_notepad++_view.gif
http://nemadeka.com/commander/Initial_notepad_view.gif

When the text is correctly displayed in the Lister, I copy it and when pasted into my e-mail client, it is garbage again, whatever the encoding:
http://nemadeka.com/commander/Pasted_into_email.gif

The text editors produce the desired result.

Notes:
- Display of Russian html pages in Lister is mainly incorrect, similar to the above;
- I remember the time when this problem did not exist.

Question:
- Is there a setting I have overlooked?
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: Russian ANSI text files garbled in lister

Post by *karlchen »

Hello, nemadeka.
nemadeka wrote:When I use Lister to view a file in Russian, initially I get garbage
http://nemadeka.com/commander/Initial_lister_view.gif
and have to press the 'S' key to be able to read the text.
There are several ways of making T.C. lister display ANSI text incorrectly.
Mainly this can be achieved by configuring inappropriate fonts for ANSI and ASCII texts.

Inside lister go to Options => Configure.
Setting the fonts for Ansi, Ascii and Variable to [x] Default each should fix the problem.

I managed to reproduce a similar behaviour like the one that you report by
+ setting the ANSI font to Lucida Console - Script: Cyrillic. (Western is correct here)
+ setting the ASCII font to Consolas - Script: Western

This is a double misconfiguration:
Ansi should be set to script=Western in Germany. Consolas is not a valid ASCII font, but a valid Ansi Western font.
Therefore using "Ansi" lister would distort German umlauts, but using the misconfigured "ASCII" font would correct the problem.

Of course text editors are not affected by a misconfigured T.C. lister and will behave properly if not instructed to do otherwise.

This test was done on
Windows 7 Enterprise SP1, 32-bit, German
Total Commander 8.0ß22

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
nemadeka
Junior Member
Junior Member
Posts: 86
Joined: 2009-04-26, 19:44 UTC

Re: Russian ANSI text files garbled in lister

Post by *nemadeka »

karlchen wrote:Hello, nemadeka.
nemadeka wrote:When I use Lister to view a file in Russian, initially I get garbage
http://nemadeka.com/commander/Initial_lister_view.gif
and have to press the 'S' key to be able to read the text.
There are several ways of making T.C. lister display ANSI text incorrectly.
Mainly this can be achieved by configuring inappropriate fonts for ANSI and ASCII texts.
Inside lister go to Options => Configure.
Setting the fonts for Ansi, Ascii and Variable to [x] Default each should fix the problem.
Thanks, Karl.
The file I am trying to view is in Russian, the system is Windows XP Pro, Russian locale, +US English.
I set the fonts to default.
Image: http://nemadeka.com/commander/Lister_config.gif
ANSI view
Image: http://nemadeka.com/commander/Lister_ANSI.gif

ASCII view
Image: http://nemadeka.com/commander/Lister_ASCII.gif

Variable width
Image: http://nemadeka.com/commander/Lister_VariableChar.gif

Good news -- pasting into TM does not change the garbage: it looks exactly as in lister, while previously it changed to some Greek charatcers
Image: http://nemadeka.com/commander/Pasted_into_email_DefaultSettings.gif

I'm afraid I have not fully understood what you said about German.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Good evening, nemadeka.

Even though my knowledge of the Russian language is less than minimal I am able to tell that setting everything to default did not do the trick. Even I can spot the incorrect characters. So my advice proved to be of little help. :oops:

Hopefully one of our Russian experts here in the forum will read this thread and offer their help.
I'm afraid I have not fully understood what you said about German.
The difference between German and Russian with respect to character set is: for Russian the default character set will by Cyrillic, for German it will be Western (Latin). I tried to imitate the problem which you see on my German Windows by instructing lister to use Cyrillic character representation.

Kind regards,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Post by *damjang »

nemadeka, if you can attach here the file the problem can be analyzed better! Also what version of TC you use?
nemadeka
Junior Member
Junior Member
Posts: 86
Joined: 2009-04-26, 19:44 UTC

Post by *nemadeka »

Thanks for your input, people. :)
The file is a plain text file
http://nemadeka.com/commander/thefile.zip
This is how it should look (notepad)
http://nemadeka.com/commander/good.gif
I am using 757 and had the same problem with 75a
The old TC version which did it all correctly was really old, a few years back.
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Post by *damjang »

So, the txt file character encoding is windows-1251. Try to change the encoding (Lister menu Encoding) to this value. Is now ok?
nemadeka
Junior Member
Junior Member
Posts: 86
Joined: 2009-04-26, 19:44 UTC

Post by *nemadeka »

This was the setting I overlooked.
Everything is fine now, with default settings and with custom fonts: the file displays correctly, and its contents are copy/pasted into the other applications correctly too.
Thanks a lot for your help!
Post Reply