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:

Description

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/tcp.py:460:doRead /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/client.py:186:dataReceived /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:280:callback /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:354:_startRunCallbacks --- --- /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:371:_runCallbacks /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/console/commands/info.py:127:on_torrents_status /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/console/commands/info.py:160:show_info /usr/local/lib/python2.6/dist-packages/deluge-1.3.900_dev-py2.6.egg/deluge/ui/console/main.py:352:write ]

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[www.torrent411.com].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:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

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.