UbuntuWiki:UTFEightMigrationTool
文章出处: |
{{#if: | {{{2}}} | https://wiki.ubuntu.com/UTFEightMigrationTool }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/af | • {{#if: UbuntuWiki:UTFEightMigrationTool|Afrikaans| [[::UbuntuWiki:UTFEightMigrationTool/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ar | • {{#if: UbuntuWiki:UTFEightMigrationTool|العربية| [[::UbuntuWiki:UTFEightMigrationTool/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/az | • {{#if: UbuntuWiki:UTFEightMigrationTool|azərbaycanca| [[::UbuntuWiki:UTFEightMigrationTool/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/bcc | • {{#if: UbuntuWiki:UTFEightMigrationTool|جهلسری بلوچی| [[::UbuntuWiki:UTFEightMigrationTool/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/bg | • {{#if: UbuntuWiki:UTFEightMigrationTool|български| [[::UbuntuWiki:UTFEightMigrationTool/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/br | • {{#if: UbuntuWiki:UTFEightMigrationTool|brezhoneg| [[::UbuntuWiki:UTFEightMigrationTool/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ca | • {{#if: UbuntuWiki:UTFEightMigrationTool|català| [[::UbuntuWiki:UTFEightMigrationTool/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/cs | • {{#if: UbuntuWiki:UTFEightMigrationTool|čeština| [[::UbuntuWiki:UTFEightMigrationTool/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/de | • {{#if: UbuntuWiki:UTFEightMigrationTool|Deutsch| [[::UbuntuWiki:UTFEightMigrationTool/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/el | • {{#if: UbuntuWiki:UTFEightMigrationTool|Ελληνικά| [[::UbuntuWiki:UTFEightMigrationTool/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/es | • {{#if: UbuntuWiki:UTFEightMigrationTool|español| [[::UbuntuWiki:UTFEightMigrationTool/es|español]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/fa | • {{#if: UbuntuWiki:UTFEightMigrationTool|فارسی| [[::UbuntuWiki:UTFEightMigrationTool/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/fi | • {{#if: UbuntuWiki:UTFEightMigrationTool|suomi| [[::UbuntuWiki:UTFEightMigrationTool/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/fr | • {{#if: UbuntuWiki:UTFEightMigrationTool|français| [[::UbuntuWiki:UTFEightMigrationTool/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/gu | • {{#if: UbuntuWiki:UTFEightMigrationTool|ગુજરાતી| [[::UbuntuWiki:UTFEightMigrationTool/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/he | • {{#if: UbuntuWiki:UTFEightMigrationTool|עברית| [[::UbuntuWiki:UTFEightMigrationTool/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/hu | • {{#if: UbuntuWiki:UTFEightMigrationTool|magyar| [[::UbuntuWiki:UTFEightMigrationTool/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/id | • {{#if: UbuntuWiki:UTFEightMigrationTool|Bahasa Indonesia| [[::UbuntuWiki:UTFEightMigrationTool/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/it | • {{#if: UbuntuWiki:UTFEightMigrationTool|italiano| [[::UbuntuWiki:UTFEightMigrationTool/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ja | • {{#if: UbuntuWiki:UTFEightMigrationTool|日本語| [[::UbuntuWiki:UTFEightMigrationTool/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ko | • {{#if: UbuntuWiki:UTFEightMigrationTool|한국어| [[::UbuntuWiki:UTFEightMigrationTool/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ksh | • {{#if: UbuntuWiki:UTFEightMigrationTool|Ripoarisch| [[::UbuntuWiki:UTFEightMigrationTool/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/mr | • {{#if: UbuntuWiki:UTFEightMigrationTool|मराठी| [[::UbuntuWiki:UTFEightMigrationTool/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ms | • {{#if: UbuntuWiki:UTFEightMigrationTool|Bahasa Melayu| [[::UbuntuWiki:UTFEightMigrationTool/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/nl | • {{#if: UbuntuWiki:UTFEightMigrationTool|Nederlands| [[::UbuntuWiki:UTFEightMigrationTool/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/no | • {{#if: UbuntuWiki:UTFEightMigrationTool|norsk| [[::UbuntuWiki:UTFEightMigrationTool/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/oc | • {{#if: UbuntuWiki:UTFEightMigrationTool|occitan| [[::UbuntuWiki:UTFEightMigrationTool/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/pl | • {{#if: UbuntuWiki:UTFEightMigrationTool|polski| [[::UbuntuWiki:UTFEightMigrationTool/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/pt | • {{#if: UbuntuWiki:UTFEightMigrationTool|português| [[::UbuntuWiki:UTFEightMigrationTool/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ro | • {{#if: UbuntuWiki:UTFEightMigrationTool|română| [[::UbuntuWiki:UTFEightMigrationTool/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/ru | • {{#if: UbuntuWiki:UTFEightMigrationTool|русский| [[::UbuntuWiki:UTFEightMigrationTool/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/si | • {{#if: UbuntuWiki:UTFEightMigrationTool|සිංහල| [[::UbuntuWiki:UTFEightMigrationTool/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/sq | • {{#if: UbuntuWiki:UTFEightMigrationTool|shqip| [[::UbuntuWiki:UTFEightMigrationTool/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/sr | • {{#if: UbuntuWiki:UTFEightMigrationTool|српски / srpski| [[::UbuntuWiki:UTFEightMigrationTool/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/sv | • {{#if: UbuntuWiki:UTFEightMigrationTool|svenska| [[::UbuntuWiki:UTFEightMigrationTool/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/th | • {{#if: UbuntuWiki:UTFEightMigrationTool|ไทย| [[::UbuntuWiki:UTFEightMigrationTool/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/tr | • {{#if: UbuntuWiki:UTFEightMigrationTool|Türkçe| [[::UbuntuWiki:UTFEightMigrationTool/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/vi | • {{#if: UbuntuWiki:UTFEightMigrationTool|Tiếng Việt| [[::UbuntuWiki:UTFEightMigrationTool/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/yue | • {{#if: UbuntuWiki:UTFEightMigrationTool|粵語| [[::UbuntuWiki:UTFEightMigrationTool/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/zh | • {{#if: UbuntuWiki:UTFEightMigrationTool|中文| [[::UbuntuWiki:UTFEightMigrationTool/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/zh-hans | • {{#if: UbuntuWiki:UTFEightMigrationTool|中文(简体)| [[::UbuntuWiki:UTFEightMigrationTool/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuWiki:UTFEightMigrationTool | UbuntuWiki:UTFEightMigrationTool | {{#if: | :}}UbuntuWiki:UTFEightMigrationTool}}/zh-hant | • {{#if: UbuntuWiki:UTFEightMigrationTool|中文(繁體)| [[::UbuntuWiki:UTFEightMigrationTool/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuWiki:UTFEightMigrationTool|:UbuntuWiki:UTFEightMigrationTool|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UbuntuWiki:UTFEightMigrationTool/zh | | {{#ifexist: UbuntuWiki:UTFEightMigrationTool/zh | | {{#ifeq: {{#titleparts:UbuntuWiki:UTFEightMigrationTool|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UbuntuWiki:UTFEightMigrationTool|1|-1|}} | zh | | }}
Current status
As of Hoary, there is now a package called utf8-migration-tool. Install it and run the command utf8migrationtool. It changes the users default login locale. Additionally, it searches for files in the users home directory with 8-bit characters and transforms them to utf-8.
Other tools
How do you rename filenames automatically to UTF-8 outside you home directory?
Download the package convmv (from the universe repository) and run it like
apt-get install convmv convmv --notest -f iso-8859-1 -t utf8 -r -i /path/to/your/files
How do you transform textfiles that contain 8-bit characters into UTF-8?
See man page for more into on command iconv. Here is an example:
iconv -f old-encoding -t UTF-8 filename > temp.tmp && cat temp.tmp > filename && rm temp.tmp
How do you mount vfat/ntfs/samba filesystems that contain 8-bit encoded characters?
Options for mount command are following:
Filesystem type | Option to enable utf-8 support |
ntfs | nls=utf8 |
vfat | utf8 |
smbfs | iocharset=utf8,codepage=unicode,unicode |
Comment
Warbo: Would this completely obliterate the AmigaOS installation that I keep in my Home directory and use with E-UAE? I am pretty sure it would, since AmigaOS doesn't use UTF-8 (at least, version 3.x doesn't and that is what I have installed) and E-UAE translates a regular ext3 folder into a partition for the emulated Amiga on-the-fly, and any filenames using foreign characters in the Amiga will always appear garbled if I go to that folder in Nautilus (which is fine, since I don't need to use Nautilus in there). Also, E-UAE's documentation says that it is not completely UTF-8 compatible. I really think things like this should be pointed out, since this page seems to be hailing UTF-8 conversion as the answer to all problems, without mentioning that it can have serious negative effects!