67 return unicode(text, "latin-1"), 'latin-1-guessed' |
67 return unicode(text, "latin-1"), 'latin-1-guessed' |
68 |
68 |
69 |
69 |
70 def readEncodedFile(filename): |
70 def readEncodedFile(filename): |
71 """ |
71 """ |
72 Function to read a file and decode it's contents into proper text. |
72 Function to read a file and decode its contents into proper text. |
73 |
73 |
74 @param filename name of the file to read (string) |
74 @param filename name of the file to read (string) |
75 @return tuple of decoded text and encoding (string, string) |
75 @return tuple of decoded text and encoding (string, string) |
76 """ |
76 """ |
77 f = open(filename) |
77 f = open(filename) |