Opened 13 years ago

Closed 12 years ago

#1811 closed bug (WorksForMe)

Encoding problem within deluge console

Reported by: curtis69 Owned by: nick
Priority: minor Milestone: Future
Component: Console (new ncurses) Version: master
Keywords: Cc:


A problem occur when after adding some french torrents It seems linked to torrent's files names, containing chars like "é" or "è"

Error getting torrent info: [Failure instance: Traceback: : 'ascii' codec can't encode character u'\xe0' in position 62: ordinal not in range(128) /usr/lib/python2.6/dist-packages/twisted/internet/ /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/ /usr/lib/python2.6/dist-packages/twisted/internet/ /usr/lib/python2.6/dist-packages/twisted/internet/ --- --- /usr/lib/python2.6/dist-packages/twisted/internet/ /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/console/commands/ /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/console/commands/ /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/console/ ]

Once such torrent is added, torrents info command return this call stack.

If I had them to deluge desktop or deluge web ui, they works (but deluge console will still bug)

Deluge version : 1.3.900_dev

Attachments (1)

L'univers de Stephen Hawking - Voyager à travers le temps.avi[].torrent (14.0 KB) - added by curtis69 13 years ago.
example of torrent causing bug

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by curtis69

example of torrent causing bug

comment:1 Changed 13 years ago by Cas

  • Component changed from console to new_console
  • Owner set to nick
  • Status changed from new to assigned

comment:2 follow-up: Changed 13 years ago by nick

I can't reproduce this. Could you let me know what the output of 'locale' is for you (assuming you're on a linux box). Someone else was having problems in non-latin locales, although I can't reproduce that either :)

comment:3 in reply to: ↑ 2 Changed 13 years ago by curtis69

Hi, Here is output for locale:


comment:4 Changed 13 years ago by Cas

  • Status changed from assigned to pending
'ascii' codec can't encode character u'\xe0'

This means that your operating system is attempting to convert to ascii so although your LANG seems fine can you try with LC_ALL set as well.

export LC_ALL='en_US.UTF-8'

comment:5 Changed 12 years ago by Cas

  • Resolution set to worksforme
  • Status changed from pending to closed
Note: See TracTickets for help on using tickets.