TCS(1)
π TCS(1) β the translate-character-sets girlies' page π
okay so this is tcs, from the General Commands Manual β yes bestie, section 1, we're in the big leagues. she translates character sets and she does it flawlessly. π
β¨ NAME β¨
tcs β translate character sets π¦ like literally that's her whole job and she ate
β¨ SYNOPSIS β¨
tcs [ -slcv ] [ -f ics ] [ -t ocs ] [ file ... ]
πΈ DESCRIPTION πΈ
okay so here's the vibe π: tcs takes the file(s) you name (or standard input if you don't name any β that's the default, no cap), reads them as a stream of characters from the ics character set or format, converts those bad boys into runes, and then converts them again into a stream of characters from the ocs character set or format, which goes out on standard output. icon behavior, honestly. π
the default value for both ics and ocs is utf β that's the UTF encoding, the one described over in utf(7). π«Ά
- the
-loption lists the character sets thattcsknows about - processing keeps going even when it hits conversion errors (
-sstops those errors from being reported, so she just quietly moves on π) - the
-coption forces the output to contain only correctly converted characters. without it?0x80characters get substituted in for UTF encoding errors, and0xFFFDcharacters get substituted in for unknown characters. so like, errors show up in your output but at least they're documented errors, iykyk π - the
-voption generates various diagnostic and summary information on standard error β or, if you're using-l, it makes that-loutput more verbose π₯
ngl, tcs recognizes an ever changing list of character sets. like she's always growing, always evolving, main character energy. in particular she supports a variety of Russian and Japanese encodings. π§
some of the supported encodings are:
utfβ the Plan 9 UTF encoding, known by ISO as UTF-8 βutf1β the deprecated original UTF encoding from ISO 10646 π (yes deprecated, be careful bestie)asciiβ 7-bit ASCII8859-1β Latin-1 (Central European)8859-2β Latin-2 (Czech .. Slovak)8859-3β Latin-3 (Dutch .. Turkish)8859-4β Latin-4 (Scandinavian)8859-5β Part 5 (Cyrillic)8859-6β Part 6 (Arabic)8859-7β Part 7 (Greek)8859-8β Part 8 (Hebrew)8859-9β Latin-5 (Finnish .. Portuguese)koi8β KOI-8 (GOST 19769-74)jis-kanjiβ ISO 2022-JPujisβ EUC-JX: JIS 0208ms-kanjiβ Microsoft, or Shift-JISjisβ (from only) guesses between ISO 2022-JP, EUC or Shift-Jis π she's guessing but she's confidentgbβ Chinese national standard (GB2312-80)big5β Big 5 (HKU version)unicodeβ Unicode Standard 1.0tisβ Thai character set plus ASCII (TIS 620-1986)msdosβ IBM PC: CP 437atariβ Atari-ST character set
π¦ EXAMPLES π¦
tcs -f 8859-1β convert 8859-1 (Latin-1) characters into UTF format β¨tcs -s -f jisβ convert characters encoded in one of several shift JIS encodings into UTF format. unknown Kanji will be converted into0xFFFDcharacters π«Άtcs -lvβ print an up to date list of the supported character sets, slay π
π SOURCE π
/src/cmd/tcs
π SEE ALSO π
ascii(1), rune(3), utf(7). go read them, bestie, they're literally right there π
okay that's the whole page!! this was TCS(1) from the General Commands Manual β no date or version on this one, she's timeless like that βπ periodt π
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms