plone/plone.namedfile — pull request #3 by tomster (2011-10-18 11:09:20+00:00)
Title: Unicode tag bugfix

On Plone 4.1.2 with dexterity 1.0.3 i observed a `TypeError: decoding Unicode is not supported` when rendering a tag using the following markup:

where portrait is an instance of a NamedBlobImage field.

it seems dexterity returns the title as unicode which plone.namedfile cannot deal with, since it tries to coerce the title to unicode. with the proposed fix, this now only happens if the title is a string.

is this a viable approach?