(Created page with "<seo title="Translating between EBCDIC and ASCII | vEdit" description="Use vEdit's built-in table to ranslate an EBCDIC text file downloaded from an IBM mainframe into ASCII f...") |
(→Translate a Text File from EBCDIC to ASCII) |
||
| Line 19: | Line 19: | ||
#Select <kbd>File</kbd> > <kbd>Close buffer</kbd> or <kbd>File</kbd> > <kbd>Exit</kbd> to save the translated file. | #Select <kbd>File</kbd> > <kbd>Close buffer</kbd> or <kbd>File</kbd> > <kbd>Exit</kbd> to save the translated file. | ||
| − | <div class="callout | + | <div class="callout important">Since IBM PC ASCII and EBCDIC have somewhat different character sets, not all characters will translate correctly. In particular, there is no equivalent of most IBM PC graphics characters. Therefore, if you translate a file to EBCDIC and then back again to ASCII, you may not have the same file again. Some punctuation, e.g. “[”, “]”, “|”, and many control |
and graphics characters will have changed.</div> | and graphics characters will have changed.</div> | ||
Translate an EBCDIC text file downloaded from an IBM mainframe into ASCII for use on a PC using vEdit.
The EBCDIC translate table ebcdic.tbl is built into vEdit and does not need to be loaded. However, for custom needs you can modify the ebcdic.tbl file and then load the revised EBCDIC table into vEdit.
If the original EBCDIC file consisted of fixed-length records without end-of-record characters, you may want to add an ASCII “newline” (Carriage-Return and Line-Feed) to the end of each record so that Windows/DOS programs can more easily read it.
Instead of translating an EBCDIC file, you can also display the file in ASCII by pressing Alt-D eight times to toggle to the “EBCDIC” display mode, as indicated on the status line. In this EBCDIC mode, the same translation table is used, but only for display purposes; the EBCDIC file itself is not changed.
Similarly, an ASCII file can be translated to EBCDIC with Edit > Translate > Translate to EBCDIC