i made a script to decode a file made a few years ago, and I've run into an issue whilst doing my second decode test.
My code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
from decoder.encodings import *
#Toontown Online Encoded Script Decoder
"""
##########################################
# Decoder was built to decompile #
# Team Pawz Multihack v2.0 #
##########################################
"""
input = "Text can be located here: http://pastebin.com/rdeAhyar ";
def decode():
print input.decode('latin_1')
decode()
When i execute the code i get
SyntaxError: EOL while scanning string literal
SyntaxError: EOL while scanning string literal
Press any key to continue . . .
If this helps i'm using the version of Python distributed within Panda3D.
inputvalue with the paste from the link? How? Are you sure there is nothing in that text that ends a string literal? Which would explain the error you are seeing. You also have to make sure backslashes are escaped or you are using a raw string literal. - BlackJackSyntaxError. Please show an example that actually shows the problem, reproducible by others. - BlackJack