Resolve Svn:can ' t convert string from ' UTF-8 ' to native encoding error

Source: Internet
Author: User
Tags svn svn client

Report the following mistake:

The code is as follows Copy Code


Svn:can ' t convert string from ' UTF-8 ' to native encoding:
svn:src/main/webapp/resources/js/my97datepicker/?229?188?128?229?143?145?229?140?133

The first line generally means that the string cannot be converted from UTF-8 encoding to local, mainly because the SVN client needs UTF8 to support Chinese.
The second line of reimbursement of the file path to view the file under its path, must be a Chinese-named file. Therefore, you need to view the system encoding file:

The code is as follows Copy Code
Lang=en_us. UTF-8
Lc_ctype= "C"
Lc_numeric= "C"
Lc_time= "C"
Lc_collate= "C"
lc_monetary= "C"
Lc_messages= "C"
Lc_paper= "C"
Lc_name= "C"
Lc_address= "C"
Lc_telephone= "C"
Lc_measurement= "C"
lc_identification= "C"
Lc_all=c

You just need to modify the Bash_profile file to add the following lines:

The code is as follows Copy Code


Export Lc_all=en_us. UTF-8
Export Lang=en_us. UTF-8
Export Language=en_us. UTF-8

And then Source:

The code is as follows Copy Code
. ~/.bashrc

At this point, again SVN operation will be reported to the svn:can& #39; t convert string from & #39; utf-8& #39; To native encoding: wrong.

Another solution

The solution is simple, locale the current system correctly:

Export Lc_ctype= "ZH_CN. Utf-8″

And then checkout it again.

Note that depending on your system character set variables, if zh_cn. UTF-8 not, it is possible to change into GB2312:

Export Lc_ctype= "ZH_CN. Gb2312″

In addition, look at other people's posts, and some variable names are different, with:

Export lang= "ZH_CN. Utf-8″

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.