S3Sync.net

General Category => Questions => Topic started by: markysvn on November 03, 2009, 10:19:18 AM



Title: Error : Iconv::IllegalSequence
Post by: markysvn on November 03, 2009, 10:19:18 AM
Hi,

Below is the error I get while running the below command, I am using ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-linux]. Could someone tell me what the issue is? This was working file till some time before and still it is working fine when I sync the other way ( from s3).

[root@ip ~]# ruby /home/scripts/s3sync.rb -r --ssl -v /home/wowza/content/ cdn.MYBUCKET.com:
/home/scripts/s3sync.rb:300:in `iconv': "\321\201\320\276\320\261\320\276\321\200.jpg" (Iconv::IllegalSequence)
   from /home/scripts/s3sync.rb:300:in `s3TreeRecurse'
   from /home/scripts/s3sync.rb:298:in `collect'
   from /home/scripts/s3sync.rb:298:in `s3TreeRecurse'
   from /home/scripts/s3sync.rb:333:in `s3TreeRecurse'
   from /home/scripts/s3sync.rb:314:in `each'
   from /home/scripts/s3sync.rb:314:in `s3TreeRecurse'
   from /home/scripts/s3sync.rb:346:in `main'
   from /home/scripts/thread_generator.rb:79:in `call'
   from /home/scripts/thread_generator.rb:79:in `initialize'
   from /home/scripts/thread_generator.rb:76:in `new'
   from /home/scripts/thread_generator.rb:76:in `initialize'
   from /home/scripts/s3sync.rb:267:in `new'
   from /home/scripts/s3sync.rb:267:in `main'
   from /home/scripts/s3sync.rb:735

Thanks and Regards
Marky


Title: Re: Error : Iconv::IllegalSequence
Post by: Admin on November 03, 2009, 10:32:47 AM
iconv is the ruby library that converts character sets between utf8 and your local.  It apparently doesn't approve of that jpg's file name.  I'm by no means an expert in character encoding; in fact you might say it's my nemesis :)  But that's what the error means at least.