Skip to content

Commit

Permalink
Merge pull request #530 from joelhy/enca-page
Browse files Browse the repository at this point in the history
add enca to common page
  • Loading branch information
igorshubovych committed Jan 7, 2016
2 parents 1ad1639 + 85355d1 commit 047974a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/common/enca.md
Original file line number Diff line number Diff line change
@@ -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}}`

0 comments on commit 047974a

Please sign in to comment.