Hi!

A special chars problem, again...

So I'm working on this content type being a subclass of ATFolder. In the schema I want to use umlauts in the label and description of the widgets (type of widget isn't changing anything). I added

    # -*- coding: utf-8 -*-

at the beginning of the .py file. When I use special chars for the label everything works fine. For the description it throws an UnicodeEncodeError.

I'm confused because I don't understand why label and description behave differently. This seems to be a Plone bug but it's so obvious, am I missing something?

I'm using Plone 3.1.7.

Here"s a snippet:

    atapi.StringField('street', required=False, searchable=True,
        storage=atapi.AnnotationStorage(),
widget=atapi.StringWidget(label=_(u"Straße"), description=_(u"Straße des Partners"))),

Thanks!
Martin
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to