Ubuntu system u disk Chinese name garbled processing?

Source: Internet
Author: User
Keywords Policy device garbled Chinese name u disk
Tags default disk example key local name problems processing

If local is ZH_CN. UTF-8 is not subject to any Chinese problems if the local is for other example ZH_CN/ZH_CN. GBK There are two ways, please choose a way to deal with the situation

One: Modify the local to ZH_CN. UTF-8

To set the local locals environment:

$sudo dpkg-reconfigure locales

Ensure ZH_CN. UTF-8 is selected and the default local is ZH_CN. UTF-8

Two: Modify the/USR/SHARE/HAL/FDI/95USERPOLICY/STORAGE-POLICY.FDI file for the following:

<?xml version= "1.0" encoding= "iso-8859-1"?> SGML <!–-*-

<deviceinfo version= "0.2" >
<device>
<match key= "@block. Storage_device:storage.removable" bool= "true" >
<merge key= "volume.policy.mount_option.fmask=111" type= "bool" >true</merge>
<merge key= "volume.policy.mount_option.dmask=0" type= "bool" >true</merge>
<merge key= "volume.policy.mount_option.users" type= "bool" >true</merge>
<merge key= "Volume.policy.mount_option.utf8" type= "bool" >true</merge>
</match>
<match key= "@block. Storage_device:storage.hotpluggable" bool= "true" >
<merge key= "volume.policy.mount_option.fmask=111" type= "bool" >true</merge>
<merge key= "volume.policy.mount_option.dmask=0" type= "bool" >true</merge>
<merge key= "volume.policy.mount_option.users" type= "bool" >true</merge>
<merge key= "Volume.policy.mount_option.utf8" type= "bool" >true</merge>
</match>
</device>
</deviceinfo>

Related Article

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.