Implemented an unicode text translator between UTF-8, UTF-16LE, and UTF-16BE formats in October 2017 at Stony Brook University.
NOTE: If you are a student in such a class, you should not copy (or copy then modify) this code without permission.
The goal of my project was to implement the
utf program that translates Unicode files between UTF-8, UTF-16LE, and UTF-16BE formats, such as:
usage: ./wyjeong-translator [-h] -e ENCODING INPUT_FILE OUTPUT_FILE Translates unicode files between utf-8, utf-16le, and utf-16be Option arguments: -h Displays this usage menu. -e ENCODING MANDATORY FLAG: Choose output format. Accepted values: - UTF16LE - UTF16BE - UTF8 Positional arguments: INPUT_FILE File to convert. Must contain a Byte Order Marking (BOM) OUTPUT_FILE Output file Will contain a Byte Order Marking (BOM)
Source code will be public on my github accout soon.