BackupPC-users

Re: [BackupPC-users] BackupPC_zipCreate and charset for encoding file names

2008-10-17 02:17:05
Subject: Re: [BackupPC-users] BackupPC_zipCreate and charset for encoding file names
From: Alexander Moisseev <moiseev AT mezonplus DOT ru>
To: Fernando Laudares Camargos <fernando.laudares AT revolutionlinux DOT com>
Date: Fri, 17 Oct 2008 09:55:50 +0400
As workaround I'm simply use BackupPC_zipCreate from 3.0.0 with BackupPC 3.1.0.
It uses $Conf{ClientCharset} and work with CGI interface.

But problem is deeper.

Craig Barratt wrote:

>The problem I have is I can't find any documentation
>for zip files and any standards around charset encoding for the
>file names in a zip file.  Is utf8 the correct default, or does
>it depend on which platform is trying to unpack the zip file?

I tried different archivers for archive browsing.  Some archivers displays 
national characters correctly when zip was created by BackupPC_zipCreate with 
one encoding, but other archivers - with other one.

But I never had seen that behavior with conventional zip-files.

Alexander

Fernando Laudares Camargos wrote:
> Hello,
> 
> I'm replying to this old thread because I believe that my question/commentary 
> fit here better than in any other thread regarding this subject.
> 
> I'm using BackupPC to backup among others a samba file server that uses a 
> ISO8859-1 charset. To get the characters displayed correctly in the command 
> line I have to set BackupPC's ClientCharset to ISO-8859-1. That's fine. But 
> when I try to download a file to a Ubuntu/Windows desktop I've got encoding 
> problems.
> 
> Using the option "-e UTF8" with BackupPC_zipCreate" in the command line 
> works. But to get it working from the CGI interface I had to "hard coded" it 
> in lib/BackupPC/CGI/Restore.pm :
> ------------------------------------------
> $bpc->cmdSystemOrEvalLong(["$BinDir/BackupPC_zipCreate",
>                  "-h", $host,
>                  "-n", $num,
>                  "-c", $In{compressLevel},
>                  "-s", $share,
>                  @pathOpts,
>                  @fileList,      # add the ,
>                  "-e UTF8"       # HERE
>             ],
>             sub { print(@_); },
> -------------------------------------------
> 
> I'm sure this is not the best way to do it but I haven't had success with any 
> other try I did. Does anybody known a better way to do that ?
> 
> Thank you,

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>