Ticket #1811 (closed bug: worksforme)

Opened 2 years ago

Last modified 15 months ago

Encoding problem within deluge console

Reported by: curtis69 Owned by: nick
Priority: minor Milestone: Future
Component: new_console Version: master (git branch)
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

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

Change History

Changed 2 years ago by curtis69

example of torrent causing bug

  Changed 2 years ago by Cas

  • status changed from new to assigned
  • owner set to nick
  • component changed from console to new_console

follow-up: ↓ 3   Changed 2 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 :)

in reply to: ↑ 2   Changed 2 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=

  Changed 2 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'

  Changed 15 months ago by Cas

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