Opened 12 years ago

Closed 12 years ago

#1981 closed bug (Invalid)

Unicode error in "Copy of .torrent files to"

Reported by: bro Owned by: Cas
Priority: minor Milestone: Future
Component: Core Version: 1.3.3
Keywords: Cc:

Description

http://forum.deluge-torrent.org/viewtopic.php?f=7&t=38177

[ERROR ] 18:46:40 core:225 There was an error adding the torrent file NAME_OF_TORRENT_FILE.torrent
1067 [ERROR ] 18:46:40 core:226 'ascii' codec can't encode character u'\x99' in position 124: ordinal not in range(128)
1068 Traceback (most recent call last):
1069 File "/usr/local/lib/python2.6/site-packages/deluge-1.3.3-py2.6.egg/deluge/core/core.py", line 223, in add_torrent_file
1070 torrent_id = self.torrentmanager.add(filedump=filedump, options=options, filename=filename)
1071 File "/usr/local/lib/python2.6/site-packages/deluge-1.3.3-py2.6.egg/deluge/core/torrentmanager.py", line 495, in add
1072 "wb")
1073 UnicodeEncodeError: 'ascii' codec can't encode character u'\x99' in position 124: ordinal not in range(128)

Change History (9)

comment:1 Changed 12 years ago by Cas

  • Status changed from new to accepted

comment:2 Changed 12 years ago by Cas

  • Status changed from accepted to pending

I am unable replicate this and because its an encode error when writing the file it suggest that the OS environment is set to ascii, can you make sure that you have a utf8 setting for LANG and LC_ALL e.g.

export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'

comment:3 Changed 12 years ago by Cas

  • Milestone changed from 1.3.4 to Future

comment:4 follow-up: Changed 12 years ago by verysofttoiletpaper

I have the same problem.

[ERROR   ] 01:17:15 autoadd:80 Unable to auto add torrent due to improper filename encoding: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)

hasn't this been solver yet?

comment:5 in reply to: ↑ 4 ; follow-up: Changed 12 years ago by Cas

Replying to verysofttoiletpaper:

I have the same problem.

hasn't this been solver yet?

Please read my previous comment. Also see #1983

comment:6 in reply to: ↑ 5 Changed 12 years ago by verysofttoiletpaper

Replying to Cas:

Replying to verysofttoiletpaper:

I have the same problem.

hasn't this been solver yet?

Please read my previous comment. Also see #1983

LANG was set to en_US.UTF-8, and I've just set LC_ALL to the same. Restarted deluged, still the same

comment:7 Changed 12 years ago by Cas

Are you running deluged as a service or cronjob?

comment:8 Changed 12 years ago by verysofttoiletpaper

Service, but I think it is working. I've set LC_ALL in /etc/init/deluge.conf

Thanks

comment:9 Changed 12 years ago by Cas

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