It might help to say which operating system and python version are you
using. I'm able to put and get a file with those characters in the file
name without using the encoding parameter. In any case, I think your
parameter should be written as --encoding=UTF-8. I'm running 1.1.0-beta3. I
haven't checked to see if anything was changed regarding this. Nothing in
the NEWS log anyway.

Jim

On Thu, Aug 2, 2012 at 10:26 AM, JS <kures...@gmail.com> wrote:

> Hi,
>
> I encountered the following error trying to sync my S3 back to a local
> folder. Error report is as follows:
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>     An unexpected error has occurred.
>   Please report the following lines to:
>    s3tools-b...@lists.sourceforge.net
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> Problem: UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in
> position 108: ordinal not in range(128)
> S3cmd:   1.0.1
>
> Traceback (most recent call last):
>   File "/usr/bin/s3cmd", line 2006, in <module>
>     main()
>   File "/usr/bin/s3cmd", line 1950, in main
>     cmd_func(args)
>   File "/usr/bin/s3cmd", line 1213, in cmd_sync
>     return cmd_sync_remote2local(args)
>   File "/usr/bin/s3cmd", line 966, in cmd_sync_remote2local
>     output(u"download: %s -> %s" % (remote_list[key]['object_uri_str'],
> remote_list[key]['local_filename']))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 108:
> ordinal not in range(128)
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>     An unexpected error has occurred.
>     Please report the above lines to:
>    s3tools-b...@lists.sourceforge.net
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> The command is
> s3cmd sync -r -rr --encoding UTF-8 --dry-run s3://
> mybucket.s3.amazonaws.com/remote-folder /localfolder/
>
> The filename contains the characters '青い栞'. It seems UTF-8 encoding still
> has problems with CJK characters. Is there any way I can still grab my
> files with s3cmd in spite of this?
>
> Cheers,
> JS
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> S3tools-general mailing list
> S3tools-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/s3tools-general
>
>


-- 
Jim Wilson, IT Manager
Kelco Industries
PO Box 160
Milbridge, ME 04658
j...@wreath.com
207-546-7989
http://www.kelcomaine.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to