BitcasaFileLister icon indicating copy to clipboard operation
BitcasaFileLister copied to clipboard

There are still some encoding Problems...

Open SoySoy22 opened this issue 12 years ago • 16 comments

XXX_für_Homöopathen

this should be XXX_für_Homöopathen . I will keep it running for now :)

SoySoy22 avatar Nov 12 '14 08:11 SoySoy22

Where is the improper version printed?

reallistic avatar Nov 12 '14 14:11 reallistic

Its the filename in the folder...

SoySoy22 avatar Nov 12 '14 16:11 SoySoy22

The script does not catch it ;-)

SoySoy22 avatar Nov 12 '14 16:11 SoySoy22

Hmm this is really interesting. At this point, the script makes 0 attempts at converting characters, it instead just "talks unicode." I'll double check there isn't some special way I should be making folders.

What system are you on?

reallistic avatar Nov 13 '14 02:11 reallistic

Just had an ah-ha moment. I am not properly taking unicode stuff into consideration for the actual downloads. I will fix it.

reallistic avatar Nov 13 '14 02:11 reallistic

This should be fixed by 53342220548e82b7f90adc16decfff2e4dc81960. Let me know if you still have issues.

reallistic avatar Nov 13 '14 05:11 reallistic

Its not fixed....

Traceback (most recent call last): File "BitcasaFileFetcher/threads/download.py", line 102, in download tmpfile.write(chunk) File "/usr/lib/python2.7/codecs.py", line 691, in write return self.writer.write(data) File "/usr/lib/python2.7/codecs.py", line 351, in write data, consumed = self.encode(object, self.errors) UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 44: ordinal not in range(128) 11/13 08:06:14 [Download 60][ERROR]: Error downloading Dokumentation-XXXOtterngezücht!xxx. Will retry 2 more times Traceback (most recent call last): File "BitcasaFileFetcher/threads/download.py", line 102, in download tmpfile.write(chunk) File "/usr/lib/python2.7/codecs.py", line 691, in write return self.writer.write(data) File "/usr/lib/python2.7/codecs.py", line 351, in write data, consumed = self.encode(object, self.errors) UnicodeDecodeError: 'ascii' codec can't decode byte 0xb4 in position 27: ordinal not in range(128)

SoySoy22 avatar Nov 13 '14 09:11 SoySoy22

11/13 10:28:31 [Download 1][ERROR]: Error downloading GP040021.avi. Will retry 8 more times Traceback (most recent call last): File "BitcasaFileFetcher/threads/download.py", line 102, in download tmpfile.write(chunk) File "/usr/lib/python2.7/codecs.py", line 691, in write return self.writer.write(data) File "/usr/lib/python2.7/codecs.py", line 351, in write data, consumed = self.encode(object, self.errors) UnicodeDecodeError: 'ascii' codec can't decode byte 0xf4 in position 1: ordinal not in range(128)

SoySoy22 avatar Nov 13 '14 09:11 SoySoy22

This is the correct name right?

11/13 17:18:39 [Queuer 1][DEBUG]: Grabbing folder Öffentlich
11/13 17:18:39 [Queuer 1][INFO]: Öffentlich

reallistic avatar Nov 13 '14 16:11 reallistic

This should be Öffentlich

ghost avatar Nov 13 '14 16:11 ghost

Now that is just WEIRD. This almost means bitcasa is screwing up the name. What system are you on? I assume you can natively create these folders right?

reallistic avatar Nov 13 '14 16:11 reallistic

I used the name given and created a folder in bitcasa. It worked without issue on a Max OS x 10.10 and Windows server 2012

11/13 08:49:47 [Queuer 1][DEBUG]: Queuing folder listing for Öffentlich
11/13 08:49:47 [Queuer 1][DEBUG]: Grabbing folder Öffentlich
11/13 08:49:47 [Queuer 1][INFO]: Öffentlich
11/13 08:49:47 [Queuer 1][DEBUG]: /Users/reallistic/Documents/workspace/BitcasaFileLister/temp/Öffentlich
11/13 08:50:59 [Download 3][INFO]: XXX_für_Homöopathen.txt size 5.0 B
11/13 08:50:59 [Download 3][DEBUG]: Downloading file to /Users/reallistic/Documents/workspace/BitcasaFileLister/temp/XXX_für_Homöopathen.txt
11/13 08:51:04 [Download 4][DEBUG]: Downloading file to /Users/reallistic/Documents/workspace/BitcasaFileLister/temp/Öffentlich/index.php
11/13 08:51:09 [Download 3][INFO]: Finished download /Users/reallistic/Documents/workspace/BitcasaFileLister/temp/XXX_für_Homöopathen.txt in 1 sec

reallistic avatar Nov 13 '14 16:11 reallistic

I have no shell atm. I'm using Debian 64bit.

If you provide me with a safe way to contact you I would send you a link ;-)

SoySoy22 avatar Nov 13 '14 19:11 SoySoy22

[email protected] In the meantime I will try it on my debian box

reallistic avatar Nov 13 '14 19:11 reallistic

Any updates on this?

reallistic avatar Nov 16 '14 10:11 reallistic

Do you think #62 could be related?

reallistic avatar Nov 16 '14 10:11 reallistic