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

Re: Can't convert string from native encoding to 'UTF-8' - subversion 1.5.1 with apache 2.03 on linux

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 20 Aug 2008 22:07:25 +0200

On Wed, Aug 20, 2008 at 02:19:25PM -0500, Steve Whitson wrote:
>
> Stefan Sperling wrote:
>
> On Wed, Aug 20, 2008 at 11:22:10AM -0500, Steve Whitson wrote:
>
>
> [Wed Aug 20 11:01:25 2008] [error] [client 10.10.10.175] Can't convert
> string from native encoding to 'UTF-8': [500, #22]
>
>
> Just a guess, because I had similar problems with character
> set conversions in my custom Subversion builds once, which
> made unit tests fail even though they were passing for everyone
> else:
>
> Make sure Subversion is linked with libiconv.
>
> Stefan
>
>
>
> How would I go about doing or ensuring this? I see that the apr-util
> has a -liconv in the SVN_APRUTIL_EXPORT_LIBS noted in the config.log
> file.
> I didn't find libiconv on my system, so I just built and installed it
> (to /usr/local). I cleaned up my subversion build, rebuilt and didn't
> get any different results.

You can check with ldd. On one of my systems, I get:
$ ldd /usr/local/bin/svn | grep iconv
        0593a000 25a19000 rlib 0 17 0 /usr/local/lib/libiconv.so.5.0

If Subversion can't find an iconv() implementation on your system,
you could also try installing apr-iconv from apr.apache.org and
then recompiling subversion. You can pass the --with-apr-iconv
option to Subversion's configure script to point it to your
apr-iconv installation. See also the INSTALL file which comes with
Subversion's source code distribution. It also talks about apr-iconv.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-20 22:07:50 CEST

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.