WordPress SVN UTF-8 issue

I tried to commit the changes to the “Filenames to latin” plugin and got the SVN error.

The error message:

Error: Commit failed (details follow): Error: Commit blocked by pre-commit hook (exit code 1) with output: Error: [Error output could not be translated from the native locale to UTF-8.] Error: This error was generated by a custom hook script on the Subversion server. Error: Please contact your server administrator for help with resolving this issue.

The latest code for the plugin I had issues with is in the GIT repo.

Does anyone know how can I solve this issue?

Thank you in advance.

Topic wordpress.org svn plugin-development plugins Wordpress

Category Web


Finally solved the issue. The problem was with the missing comma in the key-value array. It took me some time to found it. The error message was misleading: "Error output could not be translated from the native locale to UTF-8." WordPress SVN repository is doing code analyse before using pre-commit hook. I hope this will be useful for someone else too.


Wow, your plugin is very useful. #@^%$@ -> rysunok. That's so amazing!!!

About your problem, I guess you copied and pasted the special characters from other into your php files, so it caused this error.

My solution:

Try opening the file in Notepad++, click on Encoding tab at top menu, you will see the current encoding of your file, choose Encode in UTF-8 to convert them into UTF-8 format.

Repeat the same action to all your files. Commit your WP project to see the result.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.