Opened 13 years ago

Closed 12 years ago

#1981 closed bug (Invalid)

Unicode error in "Copy of .torrent files to"

Reported by: Bro Owned by: Calum
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 by Calum, 13 years ago

Status: newaccepted

comment:2 by Calum, 13 years ago

Status: acceptedpending

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 by Calum, 13 years ago

Milestone: 1.3.4Future

comment:4 by verysofttoiletpaper, 12 years ago

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?

in reply to:  4 ; comment:5 by Calum, 12 years ago

Replying to verysofttoiletpaper:

I have the same problem.

hasn't this been solver yet?

Please read my previous comment. Also see #1983

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

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 by Calum, 12 years ago

Are you running deluged as a service or cronjob?

comment:8 by verysofttoiletpaper, 12 years ago

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

Thanks

comment:9 by Calum, 12 years ago

Resolution: invalid
Status: pendingclosed
Note: See TracTickets for help on using tickets.