dk.text

dk.text.u(obj)

Return obj as a unicode string. If obj is a (non-)unicode string, then first try to decode it as utf-8, then as iso-8859-1.

dk.text.u8(obj)

Return a utf-8 representation of obj.

dk.text.unicode_repr(obj)[source]

Return obj as a unicode string. If obj is a (non-)unicode string, then first try to decode it as utf-8, then as iso-8859-1.

dk.text.utf8(obj)[source]

Return a utf-8 representation of obj.