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

Re: Problem of checkout Chinese file in MacOSX

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2005-06-23 10:44:24 CEST

Carfield Yim wrote:
> Get the following message:
>
> carfield:~/Documents/workspace/web_site/testdir carfield$ svn update
> subversion/libsvn_subr/utf.c:453: (apr_err=22)
> svn: Can't convert string from 'UTF-8' to native encoding:
> subversion/libsvn_subr/utf.c:451: (apr_err=22)
> svn: ?\228?\184?\173?\230?\150?\135.txt

I decoded this Unicode byte sequence and it boils down to two CJK codepoints
4e2d and 6587, followed by '.txt', so this data is at least plausible.

> Any solution? The file is committed at WindowsXP using subclipse, I
> suppose it is Big5, why it compliant about "Can't convert string from
> 'UTF-8' to native encoding"?

Subversion uses UTF-8 internally to store all filenames. So, now the problem
is rather
1. how do I get these two chars in Mac OS X
2. how do I tell Subversion about it

In general, this is a task solved by so-called locales. Typing 'locale' at the
console might give you a hint, other than that you need to do something OS X
specific. It's possible that a simple 'export LC_CTYPE=utf8' already does the
job. However, I'm mostly guessing - I have never used these charactersets let
alone on a Mac.

good luck

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 23 10:43:48 2005

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.