S
S
strongmonkey2016-01-06 00:51:54
Perl
strongmonkey, 2016-01-06 00:51:54

Why does svnlook: E000022: Can't convert string from 'UTF-8' to native encoding: error occur when committing svn?

Post-commit is configured on the server to send notifications. When I make a commit in which there are Russian symbols from under windows, an error occurs svnlook: E000022: Can't convert string from 'UTF-8' and it comes to email.

Added:
trunk/DWH/?\208?\191?\209?\128?\208?\184?\208?\188?\208?\181?\209?\128.txt
Log:
?\209? \130?\208?\181?\209?\129?\209?\130?\208?\190?\208?\178?\209?\139?\208?\185 ?\208?\186 ?\208?\190?\208?\188?\208?\181?\208?\189?\209?\130
/home/user/svn/repos/hooks/commit-email.pl: `/usr /bin/svnlook diff /home/user/svn/repos/ -r 698' failed with this output:
svnlook: E000022: Can't convert string from 'UTF-8' to native encoding:
svnlook: E000022: Added: trunk/ DWH/?\208?\191?\209?\128?\208?\184?\208?\188?\208?\181?\209?\128.txt

if you pull the script from the server, then everything works OK. And this is only with Russian letters

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vapaamies, 2016-01-07
@vapaamies

And what encoding is set on the server as this very native encoding? It can be seen from the log that a file is added with Russian letters in the name, and this is UTF-8, it reads пример.txt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question