Re: sqlite or xml

2007-12-06 Thread tinkerbarbet
On Dec 7, 12:34 am, Kelie <[EMAIL PROTECTED]> wrote: > Thanks Chris, Tim and Yu-Xi. I'll follow your advice and use database. Hi Kelie If you're happy going with sqlite then stick with it. If on the other hand you were considering XML because you're more comfortable with that (e.g. you find XML

Re: Best ways of managing text encodings in source/regexes?

2007-12-06 Thread tinkerbarbet
OK, for those interested in this sort of thing, this is what I now think is necessary to work with Unicode in python. Thanks to those who gave feedback, and to Cliff in particular (but any remaining misconceptions are my own!) Here are the results of my attempts to come to grips with this. Commen

Re: Best ways of managing text encodings in source/regexes?

2007-11-26 Thread tinkerbarbet
On Nov 27, 12:27 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > * When I say "# -*- coding: utf-8 -*-" and confirm my IDE is saving > > the source file as UTF-8, do I still need to prefix all the strings > > constructed in the source with u as in myStr = u"blah", even when > > those strings c

Best ways of managing text encodings in source/regexes?

2007-11-26 Thread tinkerbarbet
Hi I've read around quite a bit about Unicode and python's support for it, and I'm still unclear about how it all fits together in certain scenarios. Can anyone help clarify? * When I say "# -*- coding: utf-8 -*-" and confirm my IDE is saving the source file as UTF-8, do I still need to prefix a