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

Re: How to set text encoding of svn command line tools

From: Norbert Unterberg <nunterberg_at_gmail.com>
Date: 2006-11-13 13:53:19 CET

2006/11/12, "Martin v. Löwis" <Martin.vonLoewis@hpi.uni-potsdam.de>:
> Norbert Unterberg schrieb:

> > So how can I change the text encoding?
>
> Command line tools, on Windows, will use the result of
> GetConsoleOutputCP as their output encoding, see
> subversion/libsvn_subr/cmdline.c:svn_cmdline_init.
>
> So to change it, you need to change the encoding of the
> terminal. Use chcp.exe to do so.

Thank you for this input, I am a step further now. But it still does not work:
After some googling I found out:

1. you need to start the console with CMD /U to enable unicode
2. The code page for UTF-8 is 65001.

after I issue
cmd /U
chcp 65001
other applications really use UTF-8 as output encoding, but SVN 1.4.0 does not:

D:\test\>svnlook log -r 3 test
Commit Message mit ?\195?\156mlauten:
?\195?\164?\195?\182?\195?\188?\195?\159

There seems to be a duplicate encoding problem; instead of using UTF-8
for the output, all non-ascii characters appear as ?\nnn.

Norbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 13 13:53:40 2006

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

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