Issue #690 resolved

Pygments / XML error on umlauts

Anonymous created an issue

The following code is not parsed correctly by pygmentize:

{{{

!xml

<root> <foo aä="bar"> </foo> </root> }}}

This is what I get with {{{ pygmentize -f html -l xml -O encoding=utf-8 foo.xml }}}

{{{

!xml

<div class="highlight"><pre><span class="nt">&lt;root&gt;</span> <span class="nt">&lt;foo</span> <span class="err">aä=&quot;bar&quot;</span><span class="nt">&gt;</span> <span class="nt">&lt;/foo&gt;</span> <span class="nt">&lt;/root&gt;</span> </pre></div> }}}

(class=err)

{{{ $ pygmentize -V Pygments version 1.0, (c) 2006-2008 by Georg Brandl g.brandl@gmx.net. }}}

Comments (2)

  1. Anonymous

    The same happens with version 1.4:

    $ pygmentize -V
    Pygments version 1.4, (c) 2006-2008 by Georg Brandl.
    
  2. Log in to comment