UNICONV(1)
πΈ NAME πΈ
uniconv β convert text to native formats through Unicode β¨ (yes bestie, that's the whole vibe)
π SYNOPSIS π
uniconv -out output-file [ -decode input-encoding ] [ -encode output-encoding ] [ input-file ] [ -todos ] [ -fromdos ] [ -tomac ] [ -frommac ]
π DESCRIPTION π
okay so the tea is: uniconv decodes scripts that are in one encoding and encodes them in some other encoding. That script is a 16-, 8- or 7-bit byte stream, and honestly it does not care which. π¦
The converted text gets sent to standard output β and yes, even when you're dealing with 16-bit encoding methods β unless you specify the output file with the -out option. periodt.
The -decode and -encode options are optional (iconic of them), and the default converter is utf-8. The program reads the Unicode map helper files (*.my) from the default directory /usr/share/data. Simple 1-to-1 encoding methods can be added on the fly by adding a my-file, or by setting your yudit.datapath property in ~/.yudit/yudit.properties or /usr/share/yudit/config/yudit.properties. By default /usr/share/yudit/data and ~/.yudit/data are searched. π
My-files can be created by a program called makeumap. (go off king π)
And the line-ending glow-up: files can be converted between dos/unix/mac line-ending variants with the -fromdos, -frommac, -todos and -tomac options. The default (aka the one you didn't specify) is Unix. π«Ά
π ENCODING π
If you received this program through the Yudit distribution, then as of today you can convert between the encoding methods below. Buckle up bestie, there's a lot of them and every single one matters. π
utf-8β Yudit recommends this format for international information exchange. ASCII text will get through intact, while other Unicode characters will get their 8th bit set and the length of the code will depend on how far away they are in the Unicode space. This is the only transformation format that can encode both 16-bit (ucs-2) and 31-bit (ucs-4) Unicode. πutf-8-sβ the hackers' utf-8 format, no cap. It does not give an error message when a surrogate pair is decoded, and it can encode a surrogate pair "as is". This is not a recommended encoding format, although it is used to encode/decode clipboard data, in order to preserve input. πutf-16β although 16 is bigger than 8, this is still a compromise required by OSes like Windows that can not handleucs-4. This encoding produces 16-bit Unicode streams. In addition to BMP it can convert 16 planes using the Unicode Surrogate Area. This encoding can not convert anything aboveU+10FFFF(Plane 16). The input byte order is recognized by the first two characters BEM (byte-order-mark)U+FEFF. This format is used in Windows NT for documents like notepad.txtfiles.utf-16-beβ big endian utf-16 converter.utf-16-leβ little endian utf-16 converter.utf-7β this is the recommended format for international information exchange, when 7-bit can only be used. It can only handle 16-bit (utf-16) Unicode; forucs-4(aboveU+10FFFF) you should useutf-8encoding.iso-8859-1β the ISO 8859-1 character encoding format. Also known as "Latin-1" encoding.iso-8859-2β the ISO 8859-2 character encoding format. Also known as "Central European" encoding.iso-8859-5β the ISO 8859-5 character encoding format. Also known as "Cyrillic" encoding.iso-8859-7β the ISO 8859-7 character encoding format. Also known as "Greek" encoding.iso-8859-9β the ISO 8859-9 character encoding format. Also known as "Turkish" encoding.koi8-rβ the KOI8-R character encoding format. Mainly used in Russia.cp-1251β the CP1251 cyrillic character encoding format. Mainly used in Microsoft Windows and some web sites.iso-2022-jpβ a Japanese character encoding format. It is a 7-bit encoding format.iso-2022-jp-3β a Japanese character encoding format. It is a 7-bit encoding format. It is based upon the JIS X 0213 standard.euc-jpβ a Japanese character encoding format. It is an 8-bit encoding format. Mainly used in UNIX systems.euc-jp-3β the official name is EUC-JISX0213, but the author just could not read this. π It is a Japanese character encoding format. It is an 8-bit encoding format. It is based upon the JIS X 0213 standard.shift-jisβ a Japanese character encoding format. It is an 8-bit encoding format. Mainly used in MSDOS/Windows.shift-jis-3β the official name is Shift_JISX0213, and again, could not read it. π It is a Japanese character encoding format. It is an 8-bit encoding format. Mainly used in MSDOS/Windows.iso-2022-jpβ yes bestie, it's listed twice, that's how the page rolls. This is a Japanese 7-bit character encoding format. Theiso-2022-jpemail messages can be decoded/encoded are in this format.iso-2022-x11β a Japanese character encoding format. Also known as "COMPOUND_TEXT" encoding for the X Window System. This is a 7-bit encoding format. It can be derived from the ISO 2022-JP format with some differences.ksc-5601-x11β a Korean character encoding format used by the X window system (COMPOUND_TEXT encoding) to encode Korean (KS X 1001) and US-ASCII. This is a 7-bit encoding format compliant to the ISO-2022 specification for encoding of multiple character sets. Please, note that this is DIFFERENT from ISO-2022-KR (defined in IETF RFC 1557). πeuc-krβ an 8-bit multibyte encoding for Korean. It encodes US-ASCII (7-bit) in single byte range and characters in KS X 1001 (formerly KS C 5601) in double byte range with MSB on (8-bit). It's used in Unix and Internet. Korean versions of MS-DOS, MacOS and MS-Windows use a compatible (most cases, identical) variant of this encoding.johabβ a Korean encoding specified in KS X 1001 (KS C 5601-1992), Annex 3 as a supplementary encoding. Widely used in Korean MS-DOS until mid-1990's. It can encode all Hangul syllables (11,172) of modern Korean as well as all the special symbols and Hanja (Chinese ideograms used in Korea) defined in KS X 1001.uhcβ a variant of EUC-KR used in Korean MS-Windows 95/98 (proprietary encoding of Microsoft, CP949). Its character repertoire includes all modern syllables of Hangul, Korean script, as well as all the special symbols and Hanja (Chinese ideograms used in Korea) defined in KS X 1001.gb-18030β a Chinese character encoding format based upon GB 18030. It encodes the wholeU+0000..U+10FFFFrange, while being compatible withgb-2312.gb-2312-x11β a Chinese character encoding format based upon GB 2312. It is a 7-bit encoding format.gb-2312β a Chinese character encoding format based upon GB 2312. It is an 8-bit encoding format.big-5β a Chinese character encoding format based upon BIG5 encoding. It is an 8-bit encoding format.hzβ a Chinese character encoding format based upon "Hanzi" encoding. It is a 7-bit encoding format.visciiβ a Vietnamese character encoding format.ucs-2-beβ this converts 16-bit Unicode (ucs-2) streams. The format takes care of the big-endian variant. Yudit does not recommend this format.ucs-2-leβ this converts 16-bit Unicode (ucs-2) streams. The format takes care of the little-endian variant. Yudit does not recommend this format.ucs-2β this converts 16-bit Unicode (ucs-2) streams. The input byte order is recognized by the first two characters BEM (byte-order-mark)U+FEFF. Yudit does not recommend this format.javaβ this converts\uxxxxcharacter escapes. When encoding, all characters aboveU+0080will be escaped with a string like'\u0080'. When decoding the same format is decoded but, in addition, utf-8 format is also recognized, so it can also be used to recover data accidentally saved with the wrong encoding. TheU+10000..U+10FFFFarea is converted to surrogates and vice versa.java-sβ this converts\uxxxxcharacter escapes. When encoding, all characters aboveU+0080will be escaped with a string like'\u0080'. When decoding the same format is decoded but, in addition, utf-8 format is also recognized, so it can also be used to recover data accidentally saved with the wrong encoding. Surrogates are not treated specially during conversion β this is why it is not a recommended conversion. π
ποΈ FILES ποΈ
~/.yudit/yudit.propertiesor/usr/share/yudit/config/yudit.propertiesβ can have theyudit.datapathproperty. This is where the map files are kept. By default/usr/share/yudit/datais searched.
π SEE ALSO π
makeumap β go read it bestie, they're a duo π«Ά
π AUTHOR π
This program was written by gaspar@yudit.org (Gaspar Sinai). Last updated: 5 February, 2023, Tokyo. β¨
and that's a wrap, my love π this whole thing came to you straight from the LINUX COMMANDS crew, page dated Nov 5 1997, filed under UNICONV(1). slay, stay encoded, and remember: keep your line endings consistent or it's giving chaos. ππ¦π
π¦ where this page comes from
- debian bookworm: yudit 3.1.0-1 Β· GPL-2.0-or-later
- debian trixie: yudit 3.1.0-1 Β· GPL-2.0-or-later
- fedora 43: yudit 3.1.0-2.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: yudit 3.1.0-3.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later
- ubuntu noble: yudit 3.1.0-1 Β· GPL-2.0-or-later
- ubuntu questing: yudit 3.1.0-1
- ubuntu resolute: yudit 3.1.0-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: yudit 3.1.0-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms