Re: Python for Vcard Parsing in UTF16

2007-04-24 Thread Adam Atlas
On Apr 21, 7:28 pm, R Wood <[EMAIL PROTECTED]> wrote: > To me this was a natural task for Perl. Turns out however, there's a catch. > Apple exports the file in UTF-16 to ensure anyone with Chinese characters in > their addressbook gets a legitimate Vcard file. Here's a function that, given a `s

Re: Python for Vcard Parsing in UTF16

2007-04-24 Thread Adam Atlas
On Apr 21, 7:28 pm, R Wood <[EMAIL PROTECTED]> wrote: > I know nothing about Python except that it interests me and has interested me > since I first learned the Rekall database frontend (Linux) runs on it. I just > ordered Learning Python and if that works out satisfactorily I'm going to go > bac

Re: Python for Vcard Parsing in UTF16

2007-04-22 Thread R Wood
Alex Martelli wrote: > R Wood <[EMAIL PROTECTED]> wrote: >... >> alias Linus_Torvalds Linus Torvalds <[EMAIL PROTECTED]> >> >> To me this was a natural task for Perl. Turns out however, there's a >> catch. Apple exports the file in UTF-16 to ensure anyone with Chinese >> characters in >> the

Re: Python for Vcard Parsing in UTF16

2007-04-21 Thread Alex Martelli
R Wood <[EMAIL PROTECTED]> wrote: ... > alias Linus_Torvalds Linus Torvalds <[EMAIL PROTECTED]> > > To me this was a natural task for Perl. Turns out however, there's a catch. > Apple exports the file in UTF-16 to ensure anyone with Chinese characters in > their addressbook gets a legitimate V

Python for Vcard Parsing in UTF16

2007-04-21 Thread R Wood
Greetings - A recent Perl experiment hasn't turned out so well, which has piqued my interest in Python. The project is this: take a Vcard file exported from Apple's Addressbook and use a language that is good at parsing text to convert it into a mutt alias file. There are better ways to use Mutt