[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn checkout - special characters in file name are not encoding properly

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 10 Aug 2010 08:33:14 +0300

suman.mainam_at_asia.bnpparibas.com wrote on Tue, Aug 10, 2010 at 10:52:10 +0530:
> Please let me know how to check the file system encoding type in
> repository,

Use tools that access the repository directly. (i.e., the tools that take
a *path*, rather than a URL, of the repository.)

For example:

  svnlook tree --full-paths /path/to/repos
  svnadmin dump /path/to/repos | grep '^Node-path:'

> and assist me to change the encoding with a proper encoding
> format to get the files properly.
>

*If* the encoding in the repository filesystem is wrong, then you'll need to
rewrite history. I suppose one of the dumpfile manipulation tools out there
would be your best bet; someone on the list might be able to make a more
specific recommendation.

> --Sunny
>
>
>
>
> Internet
> d.s_at_daniel.shahaf.name
> 09/08/2010 21:01
>
> To
> Suman MAINAM
> cc
> users
> Subject
> Re: svn checkout - special characters in file name are not encoding
> properly
>
>
>
>
>
>
> (I'm going to handle just the "svn repository" potential cause of the
> problem. I'll let others handle the "client-side problem, but repository
> is
> okay" potential cause.)
>
> suman.mainam_at_asia.bnpparibas.com wrote on Mon, Aug 09, 2010 at 11:42:04
> +0530:
> > Hi,
> > I'm working on French project. Very recently we have migrated our
> project
> > from CVS to SVN repository. After migration, when checking out the file
> > names which have special characters like Western-Europe encoding fonts
> are
> > giving problem.
> >
> > e.g.:"modŠle fields-replacements.xsl" is the file name inside the
> > Subversion and after checking out the file into the local machine it is
> > coming like "mod?le fields-replacements.xsl"
> > Inside the file name '?' is displaying rather than Š(S with caron).
> >
> > Please help me to get the proper file-names from subversion without any
> > encoding
> > problem
> >
>
> We do support UTF-8 file names:
>
> 0:% x="modŠle fields-replacements.xsl"
> 0:% echo foo > $x
> 0:% $svnmucc put -mmsg $x file://`pwd`/r1/$x
> r2 committed by daniel at 2010-08-09T15:28:18.165794Z
> 0:% $svn up wc1
> A wc1/modŠle fields-replacements.xsl
> Updated to revision 2.
> 0:% ls wc1
> branches modŠle fields-replacements.xsl tags trunk
> 0:%
>
> (this is under linux with a UTF-8 locale)
>
>
> Given that you migrated from CVS to SVN, can you check that the filenames
> inside the repository's filesystem are encoded in UTF-8 and not in
> iso-8859-*?
>
>
>
> > Thank you,
> > Regards,
> > Sunny
> >
> >
>
> <snip disclaimer>
>
>
>
>
>
>
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dissemination or disclosure, either whole
> or partial, is prohibited except formal approval. The internet
> can not guarantee the integrity of this message.
> BNP PARIBAS (and its subsidiaries) shall (will) not
> therefore be liable for the message if modified.
> Do not print this message unless it is necessary,
> consider the environment.
>
> ---------------------------------------------
>
> Ce message et toutes les pieces jointes (ci-apres le
> "message") sont etablis a l'intention exclusive de ses
> destinataires et sont confidentiels. Si vous recevez ce
> message par erreur, merci de le detruire et d'en avertir
> immediatement l'expediteur. Toute utilisation de ce
> message non conforme a sa destination, toute diffusion
> ou toute publication, totale ou partielle, est interdite, sauf
> autorisation expresse. L'internet ne permettant pas
> d'assurer l'integrite de ce message, BNP PARIBAS (et ses
> filiales) decline(nt) toute responsabilite au titre de ce
> message, dans l'hypothese ou il aurait ete modifie.
> N'imprimez ce message que si necessaire,
> pensez a l'environnement.
Received on 2010-08-10 08:09:02 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.