I've made a python script to encode a folder with text files from iso-8859-1 to utf-8. It can be used with other code types changing -f iso-8859-15 to -f your_original_code and -t utf-8 to -t code_to_export in the last line starting with "os.system...".
The script is here. Is very useful to change all my .txt ebooks that are originally in iso-8859 to utf-8 (that is needed by moonshell multimedia tool, to read ebooks in my Nintendo DS). To use only execute the script in the folder. Is not recursive, only changes the .txt that are in the folder.
Friday, March 9, 2007
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment