#67 s3cmd sync error with utf envoded s3 uri

open
nobody
s3cmd (118)
5
2013-02-19
2010-10-11
Andre Hefer
No

s3cmd sync --encoding UTF-8 "dir/subdir1/subdir2Toumani Diabaté/" "s3://bucket/subdir1/subdir2/utf8_subdir/"

generated error pasted below

Acute e encoded as 0x65 0xcc 0x81 -- which looks like valid utf-8 to me

line 966: destination_base_uri seems to being encoded as utf-8 even though it is already utf-8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please report the following lines to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Problem: UnicodeEncodeError: 'ascii' codec can't encode characters in position 59-60: ordinal not in range(128)
S3cmd: 0.9.9.91

Traceback (most recent call last):
File "/Users/andrehl5/bin/s3cmd-0.9.9.91/s3cmd", line 1736, in <module>
main()
File "/Users/andrehl5/bin/s3cmd-0.9.9.91/s3cmd", line 1681, in main
cmd_func(args)
File "/Users/andrehl5/bin/s3cmd-0.9.9.91/s3cmd", line 1068, in cmd_sync
return cmd_sync_local2remote(args)
File "/Users/andrehl5/bin/s3cmd-0.9.9.91/s3cmd", line 966, in cmd_sync_local2remote
destination_base = str(destination_base_uri)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 59-60: ordinal not in range(128)

Discussion