1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/enca.md
pixel 263508cd44
*: replace file(s) syntax and add path/to/ to more things (#9592)
* Fix file(s) and more path/to

* Update pages.it/common/rm.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>

* thanks emily your suggestion was dogshit

https://github.com/tldr-pages/tldr/blob/main/contributing-guides/translation-templates/common-arguments.md

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2022-12-06 16:47:56 +10:00

20 lines
639 B
Markdown

# enca
> Detect and convert the encoding of text files.
> More information: <https://github.com/nijel/enca>.
- Detect file(s) encoding according to the system's locale:
`enca {{path/to/file1 path/to/file2 ...}}`
- Detect file(s) encoding specifying a language in the POSIX/C locale format (e.g. zh_CN, en_US):
`enca -L {{language}} {{path/to/file1 path/to/file2 ...}}`
- Convert file(s) to a specific encoding:
`enca -L {{language}} -x {{to_encoding}} {{path/to/file1 path/to/file2 ...}}`
- Create a copy of an existing file using a different encoding:
`enca -L {{language}} -x {{to_encoding}} < {{original_file}} > {{new_file}}`