#53 unicode problem in html4css1.py

Nik Klever

The types of the objects of the lists which have to be
joined in the two functions assemble_parts and astext
are sometimes of type str and sometimes of type unicode.

This is fatal if you have to use unicode all over the
time and encoding the html output into one charset
(f.g. utf-8)

I haven't the time to locate the source of this bug, so
I wrote this simple attached workaround including the
function ujoin(liste) called by the above functions
instead of ''.join(...)

If this bug is generally fixed, you can return simply
to the old form
ujoin(...) -> u''.join(...) in the calling functions
or add here the following line
return u''.join(liste)
prior to the first line in the ujoin function


  • Nik Klever

    Nik Klever - 2005-11-10


  • Nik Klever

    Nik Klever - 2005-11-10
    • assigned_to: nobody --> goodger
    • summary: unicode problem in html4css --> unicode problem in html4css1.py
  • David Goodger

    David Goodger - 2005-11-10

    Logged In: YES

    Is this an actual, observed bug (i.e., one that you've seen
    during use), or a theoretical bug? If it's an actual bug,
    please attach a minimal offending input file and
    instructions (complete command line, settings, and the
    versions of Docutils, Python, and OS you are using).

    I'd like to see an actual example of the bug before
    attempting to fix it. Because as long as all the
    non-Unicode strings are 7-bit ASCII, which I believe they
    are, there shouldn't be a problem. These strings are all
    generated internally, and should be guaranteed not to
    contain non-ASCII characters.

  • Felix Wiemann

    Felix Wiemann - 2005-11-16
    • status: open --> pending
  • SourceForge Robot

    • status: pending --> closed
  • SourceForge Robot

    Logged In: YES

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks