[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: Jewel Nuruddin <jungi_unavailable_at_yahoo.com>
Date: Tue, 28 Apr 2009 21:39:43 -0700 (PDT)

you are genius, thank you very much.
its work exactly what I want

--- On Tue, 4/28/09, Børre Gaup <boerre_at_skolelinux.no> wrote:

From: Børre Gaup <boerre_at_skolelinux.no>
Subject: Re: Need Help on Japanese Character
To: "Jewel Nuruddin" <jungi_unavailable_at_yahoo.com>
Cc: users_at_subversion.tigris.org
Date: Tuesday, April 28, 2009, 8:02 PM

-----Inline Attachment Follows-----

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:

lis?\195?\164ny M?\195?\164rtan komentaarit

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

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


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

to get UTF-8 aware commit mails.

Hope this answers your question.

Børre Gaup
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-29 09:33:23 CEST

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