svn:can& #39; t convert string from & #39; utf-8& #39; How to Native encoding solution

Source: Internet
Author: User
Tags svn update

The following problems were encountered in the down code today:

[[Email protected] ~]$ SVN co https://xxxxxxxxxxxxx
Svn:can ' t convert string from ' UTF-8 ' to native encoding:
svn:xxxxxxxx/include/xml_inc/xml/?\194?\184?

\194?

\180?\194?\188?\195?

\190 mcXML.h

The main problem is that the code contains the Chinese name of the file, the SVN side of the code does not support the cause.

In the online search of some information, basically, the following methods are used. But no matter the use (the cutting line is not the right way)

========================================== Cutting Line ==========================================

Because svnclient need UTF8 to support Chinese.

The workaround is very easy, setting the locale of the current system correctly:

Export LC_CTYPE=ZH_CN. UTF-8

Or

export lc_ctype=en_us. UTF-8 (I set the en_US. UTF-8)

And then once again, you can checkout.

Assume export lc_ctype=zh_cn. UTF-8 Tips

warning:> locale
Locale:cannot set LC_CTYPE to default locale:no such file Ordirectory
Locale:cannot set Lc_messages to default locale:no such file Ordirectory
Locale:cannot set Lc_all to default locale:no such file ordirectory information

Can try

Locale-gen en_US. UTF-8

========================================== Cutting line ==========================================

after using these methods above:

[[Email protected] ~]$ SVN update
Svn:error converting entry in the directory ' Xxxxxxxx/include/xml_inc/xml ' to UTF-8
Svn:valid UTF-8 Data
(Hex:)
followed by invalid UTF-8 sequence
(hex:b8 b4 BC FE)

Or not?


Asked the other colleagues how to solve the problem:

Add this line to the. BASHRC:

Export LANG=ZH_CN. GB18030


[Email protected] ~]$ locale
Lang=zh_cn. GB18032
Lc_ctype= "en_US. UTF-8 "
Lc_numeric= "en_US. UTF-8 "
Lc_time= "en_US. UTF-8 "
Lc_collate= "en_US. UTF-8 "
Lc_monetary= "en_US. UTF-8 "
Lc_messages= "en_US. UTF-8 "
Lc_paper= "en_US. UTF-8 "
Lc_name= "en_US. UTF-8 "
Lc_address= "en_US. UTF-8 "
Lc_telephone= "en_US. UTF-8 "
Lc_measurement= "en_US. UTF-8 "
Lc_identification= "en_US. UTF-8 "
Lc_all=en_us. UTF-8

This makes the download a little bit of a problem on the way. will appear

SVN: Method report failed on "/xxxxxx/!svn/vcc/default": $ OK (https://xxxxxxxxxxxxxxx)

Whatever it is, we can just run the following statement to solve the SVN problem.
[[Email protected] ~]$ SVN update

svn:can& #39; t convert string from & #39; utf-8& #39; How to Native encoding solution

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.