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

RE: [TSVN] Character encoding issues with log messages to Mantis

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2005-02-07 10:18:29 CET

Hi Johan,

> Lübbe, do you think it might be the wrong locale settings for
> the user running svn/apache when I commit the log message?
> I'm getting the correct message out from TSVN Show Log - but
> maybe thats to be expected.
I had exactly the same symptom. TSVN shows the log correctly which tells you
that the characters are stored correctly.

> When I try svnlook log loacally on the server I get something
> like this: startv?\195?\164rde
I had exactly the same problem with the german special characters. Which
version of svn are you running on your server? I reported a bug in svnlook
log some months ago which is fixed in the meantime.

If 'svnlook log <URL>' gives wrong results and 'svn log <URL>' gives correct
results, then you are still running svn with the 'svnlook log' bug. You
should upgrade your server software in this case.

Did you erase the websvn cache between your experiments? You may still get
wrong results from there.

> I don't have a iconv for win32, but I tried experimenting with
I was assuming a linux sever for some reason...

> the iconv functions in PHP - although without any positive
> results. I also tried the utf8_encode/decode functions from the
> XML library in PHP without success. I noticed, however, that the
> output from utf8_encode for swedish characters didn't look like
> the output from above (?\195?\164) it was more "garbish"-chars.
If you accidentally encode/decode the characters twice, you'll ger more
garbage.

> > export LANG="de_DE.utf8"
> Where has this line effect? I'm not that good with shellscripts...
On a linux server, the apache / svn user is running in a completely blank
environment which means that there is no path, no locale setting etc. That's
why you have to set these variables.

There was a problem with svn not finding its iconv library on windows which
results in the character encoding issue you describe, but I don't remember
exactly anymore how it was solved. Check the APR_ICONV_PATH variable on your
windows server and see if the libraries are really there.

Cheers
- Lübbe

--
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Feb 7 10:19:46 2005

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

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