On 1/19/2011 4:53 PM, [email protected] wrote:
Send Tutor mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.python.org/mailman/listinfo/tutor
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tutor digest..."


Today's Topics:

    1. Re: Decoding from strange symbols (Alan Gauld)
    2. Re: Why super does not work ! (Alan Gauld)
    3. (no subject) (Jacob Bender)
    4. Re: (no subject) (Emile van Sebille)
    5. Correct Path for tkinter using python3.1 on Ubuntu       Maverick!!
       (Nevins Duret)
    6. Re: OOP question (Nick Stinemates)


----------------------------------------------------------------------

Message: 1
Date: Wed, 19 Jan 2011 18:04:23 -0000
From: "Alan Gauld"<[email protected]>
To: [email protected]
Subject: Re: [Tutor] Decoding from strange symbols
Message-ID:<[email protected]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
        reply-type=original


"Oleg Oltar"<[email protected]>  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,


Thanks! That did the trick!
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to