Viewer does not show eol properly for EBCDIC viewer
Viewer does not show eol properly for EBCDIC viewer
Hello,
Salamander Viewer has one very annoying bug while displaying EBCDIC (i.e CP1252) encoded files.
The EOL character for EBCDIC encoding in 0x40. Character 0x40 is incorrectly converted to 0x3F and subsequently displayed as a question mark. As a result all lines are displayed as a single line.
Example file is attached. Viewer encoding is "IBM EBCDIC International CP1252"
Salamander Viewer has one very annoying bug while displaying EBCDIC (i.e CP1252) encoded files.
The EOL character for EBCDIC encoding in 0x40. Character 0x40 is incorrectly converted to 0x3F and subsequently displayed as a question mark. As a result all lines are displayed as a single line.
Example file is attached. Viewer encoding is "IBM EBCDIC International CP1252"
- Attachments
-
- SALAMANDER.TXT
- This is EBCDIC encoded file
- (104 Bytes) Downloaded 693 times
Re: Viewer does not show eol properly for EBCDIC viewer
EBCDIC is not CP1252EBCDIC (i.e CP1252)

The new line character in EBCDIC, and in your file, is 0x15.The EOL character for EBCDIC encoding in 0x40
I see it's translated to ? indeed, as is the line feed character (0x25).
See for instance: convert\centeuro\ebcd1252.tab
You can probably fix this yourself by changing the .tab files. Altap might want to fix this for everyone else.
Last edited by mdruiter on 17 May 2010, 20:11, edited 2 times in total.
Re: Viewer does not show eol properly for EBCDIC viewer
To fix this thing alone, use the attached file (remove .txt). But the same should be done for conversion to ASCII for instance, and probably other EBCDIC characters should change...
- Attachments
-
- ebcd1252.tab.txt
- Use this file as convert\westeuro\ebcd1252.tab
- (256 Bytes) Downloaded 604 times
Re: Viewer does not show eol properly for EBCDIC viewer
Thank you for the prompt response.
It fixed the problem.
Pavel
It fixed the problem.
Pavel
Re: Viewer does not show eol properly for EBCDIC viewer
Altap people, shouldn't you fix this?
-
- ALTAP Staff
- Posts: 1112
- Joined: 08 Dec 2005, 09:13
- Location: Novy Bor, Czech Republic
- Contact:
Re: Viewer does not show eol properly for EBCDIC viewer
What is your source for EBCDIC encoded files?
When I see EBCDIC encoding in unicode tables, I don't see any meaning for character 0x15, linefeed is character 0x25, see in all three attached encoding tables.
When I see EBCDIC encoding in unicode tables, I don't see any meaning for character 0x15, linefeed is character 0x25, see in all three attached encoding tables.
- Attachments
-
- ebcdic_inter.enc.txt
- (5.49 KiB) Downloaded 570 times
-
- ebcdic_cyrillic.enc.txt
- (5.18 KiB) Downloaded 570 times
-
- ebcdic.enc.txt
- (2.63 KiB) Downloaded 554 times
Re: Viewer does not show eol properly for EBCDIC viewer
0x15 is NEL = Newline and is used in text files for line separation, there is also 0x0d CR and 0x25 LF, which you currently map in conversion to their ASCII equivalents but this leaves the line separator problem beside. Since the conversion is unidirectional, there is nothing to stop you from converting NEL to one of these also.
Here's my suggestion: convert 0x15 to 0x0a or 0x0d to get unix/mac line endings in the converted text or leave it at 0x15 and add 0x15 to the line separator choices in the viewer's configuration.
Here's my suggestion: convert 0x15 to 0x0a or 0x0d to get unix/mac line endings in the converted text or leave it at 0x15 and add 0x15 to the line separator choices in the viewer's configuration.
-
- ALTAP Staff
- Posts: 1112
- Joined: 08 Dec 2005, 09:13
- Location: Novy Bor, Czech Republic
- Contact:
Re: Viewer does not show eol properly for EBCDIC viewer
OK, it seems to me that the best solution on Windows is to convert 0x15 "new line" to "line feed" (0x0a in CP125x). New EBCDIC tables are attached and will be available in next Preview Build. Thanks for reporting this!
- Attachments
-
- convert.zip
- (29.94 KiB) Downloaded 562 times
Re: Viewer does not show eol
I have approximately a similar problem.
If I want to view an Example file content:
the file content is transposed like this:
I've tried out ebcd1252.tab.txt and the new version in convert.zip for ebcdasci.tab and ebcd1250.tab
D:\Salamand\254\convert\westeuro
D:\Salamand\254\convert\centeuro
But the result is to see the file content in one horizontal line like the test file SALAMANDER.TXT <http://forum.altap.cz/download/file.php?id=1016>
Anyway, it's not so easy to describe my problem and I'm not total sure, if I have posted at the right place at this forum. But I will appreciate, to get a solution.
Sincerely, alm
gplus.to/alm10965
PS: backup/newer version via http://pastebin.com/Fdchcnyy
If I want to view an Example file content:
Code: Select all
this is line1
this is line2
this is line3
this is line4
this is line5
this is line6
this is line7
Code: Select all
t
h
i
s
i
s
l
i
n
e
1
t
h
i
s
i
s
l
i
n
e
2
t
h
i
s
i
s
l
i
n
e
3
t
h
i
s
i
s
l
i
n
e
4
t
h
i
s
i
s
l
i
n
e
5
t
h
i
s
i
s
l
i
n
e
6
t
h
i
s
i
s
l
i
n
e
7
D:\Salamand\254\convert\westeuro
D:\Salamand\254\convert\centeuro
But the result is to see the file content in one horizontal line like the test file SALAMANDER.TXT <http://forum.altap.cz/download/file.php?id=1016>
Anyway, it's not so easy to describe my problem and I'm not total sure, if I have posted at the right place at this forum. But I will appreciate, to get a solution.
Sincerely, alm
gplus.to/alm10965
PS: backup/newer version via http://pastebin.com/Fdchcnyy
Last edited by Ether on 05 Jun 2012, 10:58, edited 1 time in total.
Reason: Added [code] tags to enhance readability
Reason: Added [code] tags to enhance readability
-
- ALTAP Staff
- Posts: 1112
- Joined: 08 Dec 2005, 09:13
- Location: Novy Bor, Czech Republic
- Contact:
Re: Viewer does not show eol properly for EBCDIC viewer
It seems like UTF16 file (unicode), null characters are taken also as line-ends. Please upload some test file as attachment to this topic. Unicode is not supported yet, we plan it after release of version 3.0.