convert_encoding

This script converts between different text file encodings and end-of-lines. It is intended to be run from the command line. You need to have Python installed.

The utility is extremely useful for converting files between different operating systems, e.g. it can convert between the Standard Windows ANSI encoding and unicode UTF-8, which is the default encoding on many linux systems. It can also convert between the different end-of-line conventions of Windows/DOS, Unix/Linux, and Mac.

This version was updated to remove a bug preventing it from not working on Windows, and to enable better support of dotfiles

Download

convert_encoding.py

Details

Help on module convert_encoding.py: help.txt

Use as Module

If used as a module from Python, the file exports the following functions described here: modhelp.txt

blog comments powered by Disqus