mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
enca: add page
This commit is contained in:
parent
4359692109
commit
85355d1ed6
1 changed files with 19 additions and 0 deletions
19
pages/common/enca.md
Normal file
19
pages/common/enca.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# enca
|
||||
|
||||
> Detect and convert encoding of text files
|
||||
|
||||
- detect file(s) encoding according to your system's locale
|
||||
|
||||
`enca {{file(s)}}`
|
||||
|
||||
- detect file(s) encoding; -L option tells enca the current language; language is in the POSIX/C locale format, e.g. zh_CN, en_US etc.
|
||||
|
||||
`enca -L {{language}} {{file(s)}}`
|
||||
|
||||
- convert file(s) to specified encoding
|
||||
|
||||
`enca -L {{language}} -x {{to_encoding}} {{file(s)}}`
|
||||
|
||||
- save original_file as new_file and convert new_file to specified encoding
|
||||
|
||||
`enca -L {{language}} -x {{to_encoding}} < {{original_file}} > {{new_file}}`
|
Loading…
Add table
Reference in a new issue