Shell Commands/ConvertText

From MorphOS Library

Revision as of 14:48, 4 January 2016 by JPV (talk | contribs) (Created page with "'''ConvertText''' - Converts a text file to a different character encoding SHOW/S, FROM, TO, SRCENC=SE/K, DESTENC=DE/K, WRITEBOM/S <nowiki> SHOW - Lists all available en...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

ConvertText - Converts a text file to a different character encoding

SHOW/S, FROM, TO, SRCENC=SE/K, DESTENC=DE/K, WRITEBOM/S

SHOW     - Lists all available encodings and their aliases
FROM     - Name of the source file
TO       - Name of the destination file
SRCENC   - Encoding of the source file
DESTENC  - Encoding of the destination file
WRITEBOM - Writes ByteOrderMark at start of text if output encoding is a flavor of UTF-16 or UTF-32

Examples:

Ram Disk:> ConvertText test.txt test.utf8 DE=UTF-8
Ram Disk:> ConvertText test.utf8 test.txt SE=UTF-8 DE=ISO-8859-1