RE(1)
π NAME π
re β the little program that converts russian texts between different encodings, bestie π¦
(it's from the General Commands Manual section, so yeah, that's the re(1) you're looking at π)
β¨ SYNOPSIS β¨
re <infile><outfile><infrmt><outfrmt><f|b|s><u|l|s>
πΈ DESCRIPTION πΈ
okay so real talk: this manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. not me having to hand-write the docs for a whole encoding converter π but we do it for the people.
and what is re? it's a program that converts russian texts between encodings. that's the whole vibe. encodings in, encodings out, slay π
π OPTIONS π
the easiest way to convert some file into readable form (KOI-8)? literally just type this:
re <SourceFile> <DestFile> ? K
and here's what each piece is doing, iykyk:
<SourceFile>β the unreadable file π (your poor eyes)<DestFile>β the resulting file π?β tells RE that the source codepage is unknown, so RE should analyze the file and determine the source codepage itself π΅οΈββοΈKβ tells RE that the destination codepage is KOI-8 β
Note: if you know what the source codepage is, it is better to use it instead of the"?"option. for example, you want to convert aletter.txtfile which was written in Win and you know that this file is in the1251codepage:
re letter.txt letter2.txt W K
now examine the letter2.txt β you should see russian symbols in KOI-8 π
π₯ the known codepages + their abbreviatures π₯
here's the whole list, no cap, every single one π
Wβ Windows 1251Dβ DosKβ KOI-8Lβ LatinIβ IsoHβ HEXSβ ShiftKbrdMβ MacAβ AFFOβ Odd(UTF8_1)Bβ Base64Eβ ExpressTβ T-HtmlUβ User"-"β uue"_"β _xxe"%"β %hex"\\"β 'hexGβ Graph_win"<"β <binhex>+β +UTF7-Cβ C_MICYβ Y_c16Zβ Z_c32Fβ F(UTF8_2)Pβ PictNβ N_EstlVβ V_Vpp855Xβ X_spJβ J_diff
π«Ά other options π«Ά
the shape of them is: [-v][-E|-R|-N][-e|-s]
-vβ tells what is processing π-nβ don't tells what is processing (default) π€«-Eβ converts allp,Hfrom Russian to English-Rβ converts allp,Hfrom English to Russian-Nβ lets allp,HRussian or English as in text (default)-eβ converts all symbols0x80-0xFF, autodetection is weaker β οΈ-sβ converts only 64 symbols of Russian Alphabet, except'0401'(default)
π AUTHOR π
this manual page was written by Aigars Mahinovs <aigarius@debian.org>, for the Debian GNU/Linux system (but may be used by others). iconic behaviour fr fr π
and that's the whole page bestie π β this one's from March 21, 2000, and it lives in the RE(1) slot of the manual. go convert some encodings, you got this π
β¨
π¦ where this page comes from
- debian bookworm: re 0.1-7+b1 Β· GPL-2.0-or-later
- debian trixie: re 0.1-7+b1 Β· GPL-2.0-or-later
- ubuntu jammy: re 0.1-7build1 Β· GPL-2.0-or-later
- ubuntu noble: re 0.1-7build1 Β· GPL-2.0-or-later
- ubuntu resolute: re 0.1-7.1 Β· GPL-2.0-or-later
- ubuntu stonking: re 0.1-7.1 Β· 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