Re: [dzug-zope] altes Thema: zeichensätze
Vladislav Vorobiev <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Hast du auch die Zeilen: #!/usr/bin/python # -*- coding: utf-8 -*- in deinem script? http://www.python.org/peps/pep-0263.html Gruß Vlad Am 28. Januar 2010 14:32 schrieb Pavel Bogdanovic <[email protected]>: > Hallo dzug, > in der config.py meines Produkts definiere ich ein Vocabulary > STATES = DisplayList(( > ('BW', 'Baden-Württemberg'), > ('BY', 'Bayern'), > ('BE', 'Berlin'), > ... > ('TH', 'Thüringen'), > )) > Es geht um Umlaute. > Wenn ich > STATES = DisplayList(( > ('BW', u'Baden-Württemberg'), > ('BY', u'Bayern'), > ('BE', u'Berlin'), > ... > ('TH', 'Thüringen'), > )) > schreibe, also unicode, werden die Umlaute in den Select-Menüs der > Vocabularies falsch dargestellt. (utf-8 in ASCII) > Ohne die u'' sind die select-Menüs ok, aber ich entdecke den folgenden > Hinweis beim Zope Starten: > /usr/local/plone/src/my.product/my/product/__init__.py:5: > DeprecationWarning: Non-ASCII character '\xc3' in file > /usr/local/plone/src/my.product/my/product/config.py on line 16, but no > encoding declared; see http://www.python.org/peps/pep-0263.html for details > from my.product import config > > Wie mach ich es richtig? > > Gruß > Pavel > -- > _________________________________________ > Dipl.-Ing. Pavel Bogdanovic > Prontonet > Stresemannstraße 161 > D-22769 Hamburg > > Tel: +49 (0)40 76 99 0800 > Fax: +49 (0)40 76 99 0801 > mobil: +49 (0)177 246 13 15 > > [email protected] > visit us www.prontonet.eu > > > > > > > _______________________________________________ > zope mailing list > [email protected] > https://mail.dzug.org/mailman/listinfo/zope > > -- Best Regards Vlad Vorobiev _______________________________________________ zope mailing list [email protected] https://mail.dzug.org/mailman/listinfo/zope