Fixed v15: VIEW - encoding and CSV issues

May 30, 2008
235
2
I used VIEW with some ANSI (Windows 1252) files containing non-English characters like "åäö".

It seems that VIEW often fails to detect the correct encoding and opens the file in UTF-8 mode which garbles the input. (Adding or removing a single line can cause VIEW to choose the wrong one)

Is there some way to improve this, or maybe specify the encoding on the command line when opening the file?

Refreshing (F5) the display when the file is opened seem to make VIEW choose the right encoding though. Strange. Would be good to be able to skip that step though.


Another issue with VIEW is in CSV mode. It seems that displaying the gridlines cause my monitor (I turned off the speakers) to emit some low humming noise. Turning them off makes it go away. And vice versa.

I would assume this is monitor specific, or have someone else noticed the same? Changing the gridline color to something other than black makes the humming less loud or makes it go away entirely.

The problem is that hiding the gridlines is not remembered next time VIEW is started in CSV mode. You have to hide them again. Could this perhaps be changed? Or an option to specify if they are visible at startup added?

(Best would be if there were no humming noise at all, but I realize this might be hard to fix reliably. Many different monitors out there - mine is an Eizo FlexScan S2402W)
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
I used VIEW with some ANSI (Windows 1252) files containing non-English characters like "åäö".

It seems that VIEW often fails to detect the correct encoding and opens the file in UTF-8 mode which garbles the input. (Adding or removing a single line can cause VIEW to choose the wrong one)

Is this specific to v15 or does the same thing happen in v14?

Another issue with VIEW is in CSV mode. It seems that displaying the gridlines cause my monitor (I turned off the speakers) to emit some low humming noise. Turning them off makes it go away. And vice versa.

I have no idea how that could happen; I'll let Charles answer that one.
 
May 30, 2008
235
2
Is this specific to v15 or does the same thing happen in v14?

Unfortunately I don't know, I've been a bit slow to update the last few years and is still on v12, which has no VIEW command.

Seems like it should be easily fixable though since pressing F5 to refresh seems to resolve the issue.
 
It seems that VIEW often fails to detect the correct encoding and opens the file in UTF-8 mode which garbles the input.

VIEW does not auto-detect code pages - it always use the system code page (by default).

If you would like to use Windows 1252 (eg, to display line drawing characters), you will have to set it manually by left-clicking on "ANS" in the bottom right of the status bar and then selecting "Character Encoding"->"Western European"->"Windows 1252".

Once the code page is changed, it will be used for all further files - until you change it again.
It is possible that VIEW may incorrectly identify the file as a UTF-8 file - in which case it doesn't use the code page to display the file.

Note that you cannot specify what code page to use on the command line.

Refreshing (F5) the display when the file is opened seem to make VIEW choose the right encoding though. Strange.

Can you send me a file which exhibits this problem? (v at fileviewer.com)
Another issue with VIEW is in CSV mode. It seems that displaying the gridlines cause my monitor (I turned off the speakers) to emit some low humming noise.

I really don't know what to say about this!

You cannot permanently disable the vertical grid lines - but you can the horizontal grid lines (click on the arrow next to the CSV Mode button on the toolbar and select "CSV Options"). Perhaps this may make a difference.

Also, if the files are being displayed on a white background, you may try changing it to something like a light gray to see if it makes a difference (select "Customize Colors" from the View menu).
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
Another issue with VIEW is in CSV mode. It seems that displaying the gridlines cause my monitor (I turned off the speakers) to emit some low humming noise. Turning them off makes it go away. And vice versa.

I remember seeing -- er, hearing this on old CRT monitors: strongly contrasty horizontal lines can cause the tube to make an audible noise. But I've never encountered it on an LCD!
 
May 30, 2008
235
2
Once the code page is changed, it will be used for all further files - until you change it again.
It is possible that VIEW may incorrectly identify the file as a UTF-8 file - in which case it doesn't use the code page to display the file.

Can you send me a file which exhibits this problem? (v at fileviewer.com)

Yes, it's misidentified as UTF-8.

I sent a mail with example files and a little more information.


I really don't know what to say about this!

You cannot permanently disable the vertical grid lines - but you can the horizontal grid lines (click on the arrow next to the CSV Mode button on the toolbar and select "CSV Options"). Perhaps this may make a difference.

Also, if the files are being displayed on a white background, you may try changing it to something like a light gray to see if it makes a difference (select "Customize Colors" from the View menu).

Thanks.

I noticed myself that changing the grid color to dark grey fixed the noise.

Turning the horizontal grid lines off also takes care of it, but I prefer to keep them visible. But dark-grey lines and light-grey background instead of black and white works very well so this is no longer a problem for me. Only until I had changed the default colors.

I remember seeing -- er, hearing this on old CRT monitors: strongly contrasty horizontal lines can cause the tube to make an audible noise. But I've never encountered it on an LCD!

Me neither until now (unless I never noticed before).

It's not really that loud a noise, similar to a fluorescent lamp, but maybe not quite as strong as that.
 
Similar threads
Thread starter Title Forum Replies Date
D Folder/List view changed in v15 Support 8
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
newbie Upgrade from v15 to v21 Support 9
MickeyF problem using COM object in VBScript from v16 x64 TCC but not from v15 32-bit TCC Support 4
vefatica Fixed V14, V15, V16 now corrupt Support 4
S Documentation Webpage not showing latest V15 build Support 0
Dan Glynhampton Fixed v15 sendmail : password encryption problem Support 18
nikbackm Fixed v15: Issue with @select Support 3
nikbackm Registration problem with v15 Support 16
S list seems to loose focus v15 Support 2
Dan Glynhampton v15 installer question Support 2
G How to? v15: Can't alias Alt-Z Support 7
C Startup folder not working on v15 Support 6
G Fixed v15.00.27: @SELECT Support 10
H V15 Help: Error in ASSOCIATE topic Support 0
H V15 installer difficult to use with JAWS screen reader Support 0
nikbackm v15: Problem with ALIAS in command group Support 10
Dan Glynhampton Documentation v15 help: Some trivial nitpicking. Support 1
Dan Glynhampton Documentation v15 help: Error in @ISSPACE topic Support 0
Dan Glynhampton Documentation v15 help: Error in @TASCII topic Support 0
Dan Glynhampton Documentation v15 help: A couple of typos Support 0
Dan Glynhampton Documentation v15 help: Minor niggles Support 0
Dan Glynhampton Documentation v15 help: Missing link Support 0
Dan Glynhampton Documentation v15 help: Syntax error in example of @DEC Support 0
Dan Glynhampton Documentation v15 help: More mailto: links Support 2
Dan Glynhampton Documentation v15 help: More odd mailto: links in the help Support 8
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
Dan Glynhampton Documentation v15 help: Error in @HTMLDECODE topic Support 0
Dan Glynhampton Documentation v15 help: Error in @TUPPER topic Support 0
Dan Glynhampton Documentation v15 help: Error on @TRIMALL function page Support 0
Dan Glynhampton Documentation v15 help: Strange links in @INT topic Support 0
Dan Glynhampton Documentation v15 help: Incorrect Links Support 0
Dan Glynhampton Documentation v15 help: Help for SCREENMONITOR command Support 0
Dan Glynhampton Documentation v15 help: ECHOXERR Help Page Title is Wrong Support 0
Dan Glynhampton Documentation Bad links in v15 help Support 0
Dan Glynhampton Documentation Bad Link/Missing Page in v15 help Support 0
vefatica V15's automatic error emails to JPSoft! Support 3
C v15 not on ftp site? Support 8
Peter Bratton Observations on v15 install Support 4
T VIEW only works from command line Support 14
vefatica VIEW ... remember the UTF-8 setting? Support 0
Alpengreis Documentation Minor issue in help file for view /E Support 1
vefatica VIEW wrap searches? Support 2
R Documentation Help Nit > bdebugger View Menu Support 0
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
Joe Caverly Pipe into VIEW and search Support 12
vefatica VIEW ... CommandPrompt ... TC21 ... unregistered Support 6
vefatica Start VIEW with the toolbar showing? Support 5
rps How to? Piping to View /gb Support 1
vefatica VIEW ... remember no toolbar Support 0

Similar threads