Ynhub import fails - utf-8 vs iso-8859-1

Bug #517186 reported by Quicksilver
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ADCH++ GUI
Fix Committed
Low
Unassigned

Bug Description

Importing accounts.xml from ynhub fails-. (only Profiles are imported though no accounts)

Error message:
Traceback (most recent call last):
  File "pyadch\AccountManager.pyo", line 235, in addAccount
  File "pyadch\Util.pyo", line 139, in toUnicode
  File "encodings\utf_8.pyo", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 0: unexpected code byte

Guess:
import script assumes UTF-8 from the XML file though ynhub uses iso-8859-1 in the accounts.xml file as it states in the header.

Tags: import xml ynhub
Sulan (sulan80)
affects: adchpp → adchppgui
Revision history for this message
Quicksilver (christianortolf) wrote :

rev 179 in use!

Sulan (sulan80)
Changed in adchppgui:
status: New → In Progress
importance: Undecided → Low
Revision history for this message
Sulan (sulan80) wrote :

QS could you try importint with 181?

Revision history for this message
Quicksilver (christianortolf) wrote :

Works!

Though the userinterface still needs some enhacements.
I.e. can't check if passwords were imported correctly. When I select a user, detail information is not shown in that little dialog part in the upper right corner.

Revision history for this message
Sulan (sulan80) wrote :

I asume its only for those non ascii nicks...

Revision history for this message
Quicksilver (christianortolf) wrote :

oh my.. yes... works with asccii only nicks...

Revision history for this message
Sulan (sulan80) wrote :

Fixed in 185 hopefully

Changed in adchppgui:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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