Implemented an unicode text translator between UTF-8, UTF-16LE, and UTF-16BE formats in October 2017 at Stony Brook University.


All works were solely done by Wonyong Jeong except the base code that is designed under the course CSE320: System Fundamentals II led by Professor Jeniffer Wong-Ma and Professor Eugene Stark.

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)

Resources Referred:

Source Code

Source code will be public on my github accout soon.