I do wish someone who understood unicode better than I would go through and clean up the unicode usages.  There are several bugs like this lingering.


On Wed, Dec 11, 2013 at 7:14 AM, Bernhard Kuzel <kuzel@lovelysystems.com> wrote:

Problem: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 107: ordinal not in range(128)
S3cmd:   1.5.0-alpha1

Traceback (most recent call last):
  File "./s3cmd", line 2037, in <module>
    main()
  File "./s3cmd", line 1978, in main
    cmd_func(args)
  File "./s3cmd", line 576, in cmd_cp
    subcmd_cp_mv(args, s3.object_copy, "copy", "File %(src)s copied to %(dst)s")
  File "./s3cmd", line 531, in subcmd_cp_mv
    remote_list = fetch_remote_list(args, require_attribs = False)
  File "/Users/burnes/Downloads/s3cmd-1.5.0-alpha1/S3/FileLists.py", line 340, in fetch_remote_list
    uri_str = str(uri)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 107: ordinal not in range(128)


Trying to copy files with special characters (Umlaut) from one bucket to another. Using unicode(uri) worked for me (I did not use wild card)


-- 
Bernhard Kuzel, Developer

Lovely Systems GmbH
Telefon +43 5572 908060, Fax +43 5572 908060-77
Hintere Achmühlerstraße 1, 6850 Dornbirn, Austria

Sitz: Dornbirn, FB: Landesgericht Feldkirch, FN: 208859x, UID: ATU51736705
Geschäftsführer: Manfred Schwendinger


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk