You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Steve Whitson <st...@gmail.com> on 2008/08/20 16:22:10 UTC
Can't convert string from native encoding to 'UTF-8' - subversion
1.5.1 with apache 2.03 on linux
Hi,
I'm still struggling with this problem (previous subject of 'Valid UTF-8
data ... followed by invalid UTF-8 sequence'). Anyone have any ideas?
I've googled for UTF-8 problems and none seem to deal with a fresh
repository and the exact situation I'm encountering.
This message documents another configuration, using apache 2.0.63
instead of 2.0.55. Using the newer apache server I came up with
slightly different error messages.
Again, this is on a CentOS linux system working with clean builds of
apache 2.0.63 and subversion 1.5.1. I'm working with new repositories.
The errors are not encountered when going through svnserve, only when
going through apache. Oddly enough the commits succeed, although the
error is definitely cause for concern. Is there something in apache I
need to configure to inform the subversion modules to use en_US UTF-8 by
chance?
Any help would be greatly appreciated.
-Steve
========================================================================
I created a folder named test10 under trunk then performed an svn commit
as noted below along with errors received.
error messages from svn client
-------------------------
/usr/local/subversion1.5.1/bin/svn commit
Adding trunk/test08
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in
response to MKCOL request for
'/svncm/testA/!svn/wrk/d6b44522-7213-4f3c-9c9c-f4cce3fab2a1/trunk/test08'
svn: Your commit message was left in a temporary file:
svn: '/home2/web/svntestco/2.0.63/testA/svn-commit.4.tmp'
errors logged in apache 2.0.63
-------------------------
[Wed Aug 20 11:01:25 2008] [error] [client 10.10.10.175] Could not
DELETE /svncm/testA/!svn/act/d6b44522-7213-4f3c-9c9c-f4cce3fab2a1.
[500, #0]
[Wed Aug 20 11:01:25 2008] [error] [client 10.10.10.175] could not abort
transaction. [500, #22]
[Wed Aug 20 11:01:25 2008] [error] [client 10.10.10.175] Transaction
cleanup failed [500, #22]
[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]
[Wed Aug 20 11:01:25 2008] [error] [client 10.10.10.175] 0?\\164\x01
[500, #22]
========================================================================
From the tortoise repro browser I created a folder in trunk named test11
error message from tortoise
-------------------------
Can't convert string from native encoding to 'UTF-8'
errors logged in apache 2.0.63
-------------------------
[Wed Aug 20 11:04:22 2008] [error] [client 10.10.15.30] Could not MERGE
resource "/svncm/testA/!svn/act/7e4125cb-5979-8c46-8b36-9eafe2d77eb3"
into "/svncm/testA/trunk". [409, #0]
[Wed Aug 20 11:04:22 2008] [error] [client 10.10.15.30] An error
occurred while committing the transaction. [409, #22]
[Wed Aug 20 11:04:22 2008] [error] [client 10.10.15.30] Can't convert
string from native encoding to 'UTF-8': [409, #22]
[Wed Aug 20 11:04:22 2008] [error] [client 10.10.15.30] 0?\\164\x01
[409, #22]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Can't convert string from native encoding to 'UTF-8' - subversion
1.5.1 with apache 2.03 on linux
Posted by Steve Whitson <st...@gmail.com>.
Stefan Sperling wrote:
> On Wed, Aug 20, 2008 at 03:42:32PM -0500, Steve Whitson wrote:
>
>> Its definitely finding the iconv I just installed:
>> ldd svn | grep iconv
>> libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x00c34000)
>> Still the same errors.
>>
>
> Then it's definitely a different problem.
> But I haven't got a clue what it could be though, sorry :(
>
> Stefan
>
Thanks much for your help Stefan! I did rebuild (reconfigure, clean and
make) with apr-iconv and still am getting the same error.
-Steve
Re: Can't convert string from native encoding to 'UTF-8' -
subversion 1.5.1 with apache 2.03 on linux
Posted by Stefan Sperling <st...@elego.de>.
On Wed, Aug 20, 2008 at 03:42:32PM -0500, Steve Whitson wrote:
> Its definitely finding the iconv I just installed:
> ldd svn | grep iconv
> libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x00c34000)
> Still the same errors.
Then it's definitely a different problem.
But I haven't got a clue what it could be though, sorry :(
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Can't convert string from native encoding to 'UTF-8' - subversion
1.5.1 with apache 2.03 on linux
Posted by Steve Whitson <st...@gmail.com>.
Stefan Sperling wrote:
> 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
>
Its definitely finding the iconv I just installed:
ldd svn | grep iconv
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x00c34000)
Still the same errors.
Thanks much!
-Steve
Re: Can't convert string from native encoding to 'UTF-8' -
subversion 1.5.1 with apache 2.03 on linux
Posted by Stefan Sperling <st...@elego.de>.
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@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Can't convert string from native encoding to 'UTF-8' - subversion
1.5.1 with apache 2.03 on linux
Posted by Steve Whitson <st...@gmail.com>.
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.
Thanks much,
-Steve
Re: Can't convert string from native encoding to 'UTF-8' - subversion
1.5.1 with apache 2.03 on linux
Posted by Steve Whitson <st...@gmail.com>.
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, reconfigured it,
rebuilt and didn't get any different results.
Thanks much,
-Steve
Re: Can't convert string from native encoding to 'UTF-8' -
subversion 1.5.1 with apache 2.03 on linux
Posted by Stefan Sperling <st...@elego.de>.
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org