Python - Convert Octal To Non-english Text From File
I am trying to convert Non-English file encoded in Octal back into it's native format and store it in another file. The files include: i_file : The input Original File with Octal
Solution 1:
The print
statement for an Octal encoded string, decodes Octal to the non-English notation only when working the python interpreter.
Thus, a simple work around is to perform the following steps:
- Copy the contents of the file to be decoded
- Open the python interpreter and assign the file contents to a variable in a multi line string.
- Print the variable
- Copy contents to a new file
Post a Comment for "Python - Convert Octal To Non-english Text From File"