From: <sk...@ac...> - 2005-09-26 20:01:02
|
Thank you, Don and Alex, for your time. > The u'' is for the unicode objects, which is almost like a string, > except it handles non-ascii chars as unicode. You can then encode > the unicode string (utf8 by default, but can also be anything else). That makes sense. How does Python know that the string is UTF-8 and not Latin-1? There are some statements in the Date_sv.py that compile regexps. Those strings are not unicode. I can see from Date_fr.py and Date_ru.py that separate unicode strings are merged into the (ascii?) string sent to the regexp compiler. Why is this construction needed? Can't a unicode string be used directly? > I never managed to get Python IDE (called idle) work for me > with gramps, so I don't know. I use print statements, and > emacs with python mode for editing. Sorry :-) Who can live without Emacs? Print statements, that is. That's what I usually use too. :-) Stefan |