https://github.com/pjox/gutf
Terminal tool that converts files encoding to UTF-8
https://github.com/pjox/gutf
cli converter encoding files text
Last synced: over 1 year ago
JSON representation
Terminal tool that converts files encoding to UTF-8
- Host: GitHub
- URL: https://github.com/pjox/gutf
- Owner: pjox
- License: apache-2.0
- Created: 2018-06-14T13:03:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-05T15:24:41.000Z (over 6 years ago)
- Last Synced: 2023-02-28T18:52:05.570Z (over 3 years ago)
- Topics: cli, converter, encoding, files, text
- Language: Go
- Size: 13.7 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gutf
Gutf is a terminal tool that converts file encodings.
This tool will convert files from and into a variety of encodings (see the supported encodings section), but please try to use it responsibly and always convert you files into UTF-8. If by any event you need to convert your text files into something different than UTF-8, don't worry, Guft will help you do those unholy convertions.
Different from iconv, gutf works with huge files as it does not load the whole file into memory.
## Usage
```text
gutf [input] [encoding] [output] [encoding]
```
## Supported Encodings
```text
IBMCodePage037
IBMCodePage437
IBMCodePage850
IBMCodePage852
IBMCodePage855
WindowsCodePage858
IBMCodePage860
IBMCodePage862
IBMCodePage863
IBMCodePage865
IBMCodePage866
IBMCodePage1047
IBMCodePage1140
ISO8859-1
ISO8859-2
ISO8859-3
ISO8859-4
ISO8859-5
ISO8859-6
ISO-8859-6E
ISO-8859-6I
ISO8859-7
ISO8859-8
ISO-8859-8E
ISO-8859-8I
ISO8859-9
ISO8859-10
ISO8859-13
ISO8859-14
ISO8859-15
ISO8859-16
KOI8-R
KOI8-U
Macintosh
MacintoshCyrillic
Windows874
Windows1250
Windows1251
Windows1252
Windows1253
Windows1254
Windows1255
Windows1256
Windows1257
Windows1258
X-User-Defined
EUC-JP
ISO-2022-JP
ShiftJIS
EUC-KR
GB18030
GBK
HZ-GB2312
Big5
UTF-8
UTF-16BE(UseBOM)
UTF-16BE(IgnoreBOM)
UTF-16LE(IgnoreBOM)
UTF-32BE(UseBOM)
UTF-32BE(IgnoreBOM)
UTF-32LE(IgnoreBOM)
```