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

Re: Need Help on Japanese Character

From: Børre Gaup <boerre_at_skolelinux.no>
Date: Tue, 28 Apr 2009 13:02:27 +0200

Maŋŋebárga, cuoŋománu 28. b. 2009 08.28.02 Jewel Nuruddin čálii:
> I want to read subversion log comments by perl it reading English text is
> fine but give guabage when I want to read Japanese by the following perl
> code.
>
> use Jcode;
> push(@body, Jcode::convert(@log, 'utf8'));
>
> If some one can help me
>

With the standard setup svn didn't understand commit messages that contained
UTF-8 letters or filenames containing UTF-8 letters. The result was something
like this:

Modified:
   trunk/kvensk/fitswe/inc/pk620407.csv
Log:
lis?\195?\164ny M?\195?\164rtan komentaarit

I had to change the post-commit script in <my-repository>/hooks from this
line:

commit-email.pl "$REPOS" "$REV" -h localhost svn-watchers_at_localhost

to

LC_ALL=en_US.UTF-8 commit-email.pl "$REPOS" "$REV" -h localhost svn-
watchers_at_localhost

to get UTF-8 aware commit mails.

Hope this answers your question.

--
Børre Gaup
Received on 2009-04-28 13:10:51 CEST

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