UnicodeEncodeError checking html file

Bug #1105242 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pocket-lint
Fix Released
High
Curtis Hovey

Bug Description

The file encoding is in fact utf-8, and it contains an 'é'. This probably relates the gdp or the checker. The former knows about the encoding. The latter tries to ensure the file is utf-8. Something wrongly claimed the encoding was ascii.

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/home/curtis/.local/share/gedit/plugins/gdp/format.py", line 104, in run
    checker.check()
  File "/usr/lib/pymodules/python2.7/pocketlint/formatcheck.py", line 366, in check
    checker.check()
  File "/usr/lib/pymodules/python2.7/pocketlint/formatcheck.py", line 489, in check
    ElementTree.parse(StringIO(text), parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1183, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
    parser.feed(data)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1641, in feed
    self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1972: ordinal not in range(128)

Tags: gdp regression
Curtis Hovey (sinzui)
Changed in pocket-lint:
milestone: none → 1.0.0
Curtis Hovey (sinzui)
tags: added: gdp
Curtis Hovey (sinzui)
Changed in pocket-lint:
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in pocket-lint:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.