| 1 | = Select charsets = |
| 2 | |
| 3 | If you want to select chansets, you need to make project with {{{--enable-charset}}} option. Select charsets works in file panels, editor and viewer. |
| 4 | |
| 5 | |
| 6 | List of charsets plased in /etc/mc/mc.charsets file. Format of file is a simple: any string must contain: |
| 7 | |
| 8 | {{{ |
| 9 | <Name of charset> <description of charset> |
| 10 | }}} |
| 11 | |
| 12 | 'Name of charset' must be named by one of {{{iconv -l}}} output charsets names. 'Description of charset' -- string for display charset into 'select charsets' dialog window. 'Name of charset' and 'Description of charset' must be separated by space or tab symbol. |
| 13 | |
| 14 | Default mc.charsets file contain: |
| 15 | |
| 16 | {{{ |
| 17 | ASCII 7-bit ASCII |
| 18 | ISO-8859-1 ISO 8859-1 |
| 19 | ISO-8859-2 ISO 8859-2 |
| 20 | ISO-8859-5 ISO 8859-5 |
| 21 | CP1250 Windows 1250 |
| 22 | CP1251 Windows 1251 |
| 23 | CP437 CP 437 |
| 24 | CP850 CP 850 |
| 25 | CP852 CP 852 |
| 26 | CP866 CP 866 |
| 27 | KOI8-R KOI8-R |
| 28 | KOI8-U KOI8-U |
| 29 | UTF-8 UTF-8 |
| 30 | }}} |
| 31 | |
| 32 | You may edit this list as you need. If you mean, that some charsets need to include into default file (in project repository) please keep ticket in our bugtracker. |
| 33 | |
| 34 | == Display setup == |
| 35 | |
| 36 | As first, you need to setup charset of input/output (must be equal to your system charset). Setting is made in the 'Display bits' dialog window (Menu -> Options -> Display bits ...). When you save the settings the encoding will be recorded in the configuration file ~/.mc/ini (option 'display_codepage' in section [Misc]). |
| 37 | |
| 38 | == In editor and viewer == |
| 39 | |
| 40 | For change charset press {{{Ctrl-t}}} (or select Menu -> Command -> Encoding...).This means that the file will be recoded from selected charset into input/output charset. File still untouched. |
| 41 | |
| 42 | Search also be produced in the charset that you chose. You can choose "All charsets" in the search dialog to search in all known charsets. |
| 43 | |
| 44 | If you save the settings of editor, then the chosen charset will written in the configuration file ~/.mc/ini ('source_codepage parameter' in the [Misc] section). In next time of editor start saved charset will be used for all reopening files. |
| 45 | |
| 46 | == In file panels == |
| 47 | |
| 48 | Press {{{Ctrl-t}}} in active panel (or select 'Menu -> <Left|Right> -> Encoding...'. Select needed charset. In title of panel you'll see: |
| 49 | {{{ |
| 50 | /some/path#enc:<selected charset> |
| 51 | }}} |
| 52 | |
| 53 | You may continue to navigate into subdirs. Named of files and directoryes will be recoded from selected charset into input/output charset. You may change charset into subdir: |
| 54 | {{{ |
| 55 | /some/path#enc:<selected charset>/subdir#enc:<selected charset 2> |
| 56 | }}} |
| 57 | In any case recode of filenames will be made from last selected charset into input/output charset (not between charsets in path). |
| 58 | |
| 59 | If you select 'No translation' in 'Choose codepage' dialog window, all charset recode info will be cleaned from path. |
| 60 | |