CVTENC(1)
π CVTENC β like, the file encoding converter bestie π
okay so real talk: this is cvtenc from the GNUstep System Manual, and she is the girl for flipping a file from some non-unicode encoding into unicode, or the other way around. come sit with me π«Ά
β¨ SYNOPSIS β¨
cvtenc [-Encoding encoding] [-EscapeIn yes|NO] [-EscapeOut yes|NO]
filename
πΈ DESCRIPTION πΈ
So here's the tea β β cvtenc takes a file that's encoded in a non-unicode encoding (either the one you specify or the default one) and converts it to unicode, specifically UTF16. And if the file is already unicode? Then she goes the other direction and converts it to a specified-or-default non-unicode encoding. Versatile queen π.
The converted text gets printed to standard out. That's it, that's the output, no files get touched.
Oh and if the filename is a hyphen (-), this tool reads from standard input instead. cute, right? π
π OPTIONS π
-Encodingencoding β tell her which non-unicode encoding to use. Which direction the conversion goes depends on whether the input file is recognized as unicode (she figures that out from the higher order bytes π). Wanna see every encoding she knows? Just enter"list"for the encoding and she'll spill. If you don't specify this at all, the default encoding for the current locale is what she rolls with.-EscapeIn YES|NOβ set'-EscapeIn YES'(and btw the default is'NO') to parse the input looking for\uescape sequences, same energy as in property lists.-EscapeOut YES|NOβ set'-EscapeOut YES'(default is'NO'again) to generate\uescape sequences in the output, again like in property lists.
β οΈ heads up bestie: this might produce unexpected results for some encodings. not a vibe, just a fact π
-Unicode IN|OUTβ use'-Unicode IN'(or'-Unicode OUT') to control the direction of conversion yourself instead of letting the tool guess based on the content it reads. Here's the breakdown, no cap:'-Unicode IN'β the tool reads UTF16 data and writes C-String data.'-Unicode OUT'β the tool reads C-String data and writes UTF16 data.
π¦ HISTORY π¦
Written in 2002. Minor update in 2010.
This manual page first appeared in gnustep-base 1.9.2 (March 2004). a whole era β¨
π AUTHORS π
cvtenc was written by Richard Frith-Macdonald <rfm@gnu.org>. icon behavior, honestly π
and that's the whole page, babe β brought to you by GNUstep, dated February 2004, filed under CVTENC(1). mwah πππ«Ά
π¦ where this page comes from
- arch rolling: gnustep-base 1.31.1-3 Β· GPL-2.0-only AND GPL-3.0-only AND LGPL-2.1-only
- debian bookworm: gnustep-base-runtime 1.28.1+really1.28.0-5 Β· LGPL-2.1-or-later
- debian trixie: gnustep-base-common 1.31.1-3 Β· LGPL-2.1-or-later
- epel 9: gnustep-base 1.28.0-3.el9 Β· GPLv3+ and LGPLv2+
- fedora 43: gnustep-base 1.31.0-7.fc43 Β· GPL-3.0-or-later AND LGPL-2.0-or-later
- fedora 44: gnustep-base 1.31.0-8.fc44 Β· GPL-3.0-or-later AND LGPL-2.0-or-later
- nixos 26.05: gnustep-base 1.29.0
- nixpkgs unstable: gnustep-base 1.29.0
- opensuse-leap 16.0: gnustep-base 1.31.1-160000.2.2 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: gnustep-base 1.31.1-160000.2.2 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: gnustep-base 1.31.1-160000.2.2 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: gnustep-base 1.31.1-160000.2.2 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: gnustep-base-runtime 1.28.0-4build1 Β· LGPL-2.1-or-later
- ubuntu noble: gnustep-base-runtime 1.29.0-7ubuntu4 Β· LGPL-2.1-or-later
- ubuntu questing: gnustep-base-common 1.31.1-4ubuntu1
- ubuntu resolute: gnustep-base-common 1.31.1-4ubuntu2 Β· LGPL-2.1-or-later
- ubuntu stonking: gnustep-base-common 1.31.1-4ubuntu2 Β· LGPL-2.1-or-later
- Copyright (C) 2005 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms