UnicodeDecodeError in utils.py", line 959 when configuring printer with non-ascii company name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
Original Mandriva bug report: https:/
The user sets up a HP LaserJet M2727nf MFP printer and enters non-ascii characters in the company name of the fax.
Then he tries to configure the printer on his Mandriva system by using hp-setup. hp-setup crashes with this backtrace:
The installation aborts with the following errors:
Traceback (most recent call last):
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
readwriteFaxInf
self.fax_number = unicode(
File "/usr/share/
fax_setup = utils.XMLToDict
File "/usr/share/
parser.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 313:
ordinal not in range(128)
The user says that replacing line 959 of utils.py
parser.
by
parser.Parse(text, True)
fixes the problem.