linux - SVN Error: Can't convert string from native encoding to 'UTF-8' -


I have a post-cut hook script that displays the SVN update of a work copy when used in the repository is .

When users comment on the repository using TortisSVN from their Windows machines, they receive the following error:

  Post-commit hook failed (exit code 1 ) Output with: svn: '/ Home / websites / devel / website / guides / images' Error in entering directory for UTF-8 SVN: string encoding in 'UTF-8' from native encoding Could: svn: Teneriffa-S? \ 195? \ 188d.jpg  

The above question is a file: Teneriffa-Süd.jpg Notified U Notice The reason is that the site is German and the files are spelled in German Have gone

There is no error when performing an update on the copy of the work on the Linux Command Line. The above error occurs only when the post-limit hook is executed by a Windows SVN client by committing.

Question:

  1. Why did SVN try to change the encoding of a file?
  2. Do the characters in the file names that are outside of Windows Standard ASCII, allow it?

Update:

It turns out that the file in the file name of the question is correctly Teneriffa-Süd.jpg Displays when a Windows machine is viewed (via Samba), but when I see the file name (using SSH and PuTTY) from the Linux server

  1. it does not change the encoding of the file. It changes the encoding of the file name Can Id that something like that) is.
  2. By whom? NTFS uses 16-bit code points, and Windows can expose the filenames in various encodings, depending on how you can ask for it (it will try to convert it into encoding) now ... that Bit (depending on how you ask) depends on the specific SVN customer you use. It looks like a bug in TortoisSVN for me.

Edit to add:

Uh I misunderstood the symptoms. The STVN server stores everything in UTF-8 (and it seems that it has done successfully).

Post-cut hook fails to convert from UTF-8. If I think that you are right, post-cut hook on the server triggers a svn update in a shared drive (svn server therefore the svn client starts itself ...)? This means that the configuration that is to be decided is on the server for the customer check the LANG / LC_ALL on the server executed on the svn server. As soon as occurs, the hook is run in one (see tip). So you should set the variable to hook.

How Localization Handles


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -