[Tutor] Decoding from strange symbols
Alan Gauld
alan.gauld at btinternet.com
Wed Jan 19 19:04:23 CET 2011
"Oleg Oltar" <oltarasenko at gmail.com> wrote
> I am trying to decode a string I took from file:
>
> file = open ("./Downloads/lamp-post.csv", 'r')
I assume you know what its supposed to represent?
What the columns etc are intended to be?
Otherwise it will be a challenge!
There is a section here that looks like the months of the year
(English) in reverse:
\x00S\x00e\x00a\x00r\x00c\x00h\x00e\x00s\x00\t\x00D\x00e\x00c\x00
\x002\x000\x001\x000\x00\t\x00N\x00o\x00v\x00
\x002\x000\x001\x000\x00\t\x00O\x00c\x00t\x00
\x002\x000\x001\x000\x00\t\x00S\x00e\x00p\x00
\x002\x000\x001\x000\x00\t\x00A\x00u\x00g\x00
\x002\x000\x001\x000\x00\t\x00J\x00u\x00l\x00
\x002\x000\x001\x000\x00\t\x00J\x00u\x00n\x00
\x002\x000\x001\x000\x00\t\x00M\x00a\x00y\x00
\x002\x000\x001\x000\x00\t\x00A\x00p\x00r\x00
\x002\x000\x001\x000\x00\t\x00M\x00a\x00r\x00
\x002\x000\x001\x000\x00\t\x00F\x00e\x00b\x00
\x002\x000\x001\x000\x00\t\x00J\x00a\x00n\x00
Otherwise its all a bit arbitrary...
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list