Skip to content Skip to sidebar Skip to footer

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:

  1. Copy the contents of the file to be decoded
  2. Open the python interpreter and assign the file contents to a variable in a multi line string.
  3. Print the variable
  4. Copy contents to a new file

Post a Comment for "Python - Convert Octal To Non-english Text From File"