Unicode in 0.9.08

Suggestions and discussion of future versions
Post Reply
rockerboo
Member
Member
Posts: 17
Joined: Wed Jun 04, 2008 5:49 pm

Unicode in 0.9.08

Post by rockerboo »

System Stats:

Ubuntu 8.04.1 x64, running 0.9.08 RC

I am currently trying to add this torrent file,

Code: Select all

Messer Für Frau Müller - Hyper Utesov Presents.torrent
When I try to open it in Deluge, the ü becomes u, and then when i put it to save in a certain folder

Code: Select all

/media/Music/Music/Messer Für Frau Müller
Which exists fine

Code: Select all

rockerboo@Belefonte:/media/Music/Music/Messer Für Frau Müller$ pwd
/media/Music/Music/Messer Für Frau Müller
it is giving me the following in deluged.log in ~/.config/deluge/

Code: Select all

[DEBUG   ] 14:34:29 torrentmanager:310 options: {'max_download_speed_per_torrent': -1.0, 'add_paused': False, 'prioritize_first_last_pieces': False, 'max_upload_speed_per_torrent': -1.0, 'auto_managed': True, 'max_connections_per_torrent': -1, 'download_location': u'/media/Music/Music/Messer F\xfcr Frau M\xfcller', 'compact_allocation': False, 'file_priorities': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 'default_private': False, 'max_upload_slots_per_torrent': 4}
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/deluge/core/core.py", line 390, in _add_torrent_file
    torrent_id = self.torrents.add(filedump=filedump, options=options, filename=filename)
  File "/var/lib/python-support/python2.5/deluge/core/torrentmanager.py", line 319, in add
    add_torrent_params["save_path"] = str(options["download_location"])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 27: ordinal not in range(128)
With this, the file never shows up in the deluge client.

If you need any more information let me know.
rockerboo
Member
Member
Posts: 17
Joined: Wed Jun 04, 2008 5:49 pm

Re: Unicode in 0.9.08

Post by rockerboo »

This has been fixed in SVN, and should be all set in 0.9.09 or final
Post Reply