• recode

    From Alexey Fayans@2:5030/1997 to All on Mon Sep 7 09:42:45 2026
    Hello All!

    Запилил утилитку, которая перекодирует сообщения прямо в базе и меняет кладж CHRS в соответствии с новой кодировкой. Перед тем, как что-то сохранять в базу, показывает, что получилось, и спрашивает разрешения (можно ответить, чтобы больше не спрашивала). Поддерживаются базы JAM/Squish/Msg. Я тестировал как мог и проблем не обнаружил, но всё равно рекомендую делать бэкапы баз на всякий случай. ;)

    === Start of Windows Clipboard ===
    Fido message base character set recoding tool

    Usage:
    recode.exe <basespec> <from_charset> <to_charset> [search_charset | msg_number]

    Parameters:
    <basespec> Message base specification
    <from_charset> Source character set
    <to_charset> Destination character set
    [search_charset] Optional character set to match in CHRS kludge
    [msg_number] Optional specific message number to recode

    Base Specification format:
    <Letter><Path>
    Where Letter is:
    J - JAM
    S - Squish
    F, M, * - MSG / Opus

    Note:
    This tool operates interactively with manual confirmation. A preview
    of the decoded message is shown on screen before writing to base.
    It is recommended to recode to your console character set (e.g., CP866)
    so the preview is readable, or do so at your own risk.

    Examples:
    recode.exe Jc:\fido\msgbase\jam\ruftndev UTF-8 CP866
    recode.exe Sc:\fido\msgbase\squish\fn_sysop UTF-8 CP850
    recode.exe Mc:\fido\msgbase\msg\netmail KOI8-R CP866 KOI
    (recode messages with incorrect CHRS kludge: KOI instead of KOI8-R)
    recode.exe Jc:\fido\msgbase\jam\su_chainik CP866 CP866 ASCII
    (just replace incorrect CHRS kludge: ASCII -> CP866)
    recode.exe Sc:\fido\msgbase\squish\ru_linux KOI8-R CP866 666
    (recode message #666 even if it has no CHRS kludge)
    === End of Windows Clipboard ===

    Забирать с гитхаба: https://github.com/shadowlmd/mbtool
    Бинарники под винду: https://github.com/shadowlmd/mbtool/releases/tag/latest


    ... Music Station BBS | https://bbs.bsrealm.net | telnet://bbs.bsrealm.net
    --- GoldED+/W32-MSVC 1.1.5-b20180707
    * Origin: Music Station | https://ms.bsrealm.net (2:5030/1997)
  • From Alexey Khromov@2:5030/723 to Alexey Fayans on Mon Sep 7 15:13:45 2026
    Здраствуйте, Alexey!

    Забирать с гитхаба: https://github.com/shadowlmd/mbtool
    Бинарники под винду: https://github.com/shadowlmd/mbtool/releases/tag/latest

    Cпасибо, под linux собирается так же элементарно:

    git clone https://github.com/shadowlmd/mbtool.git
    cd mbtool
    git clone https://github.com/shadowlmd/skMHL-avs.git
    fpc -Fl./skMHL-avs/sources -FE. ./skMHL-avs/sources/skmhl.pas
    fpc -Fl./skMHL-avs/sources -FE. ./skMHL-avs/sources/skopen.pas
    fpc -Fl./skMHL-avs/sources ./recode.pas
    fpc -Fl./skMHL-avs/sources ./mbtool.pas


    Alexey Khromov
    --- GoldED+/LNX 1.1.5-UTF8-b20260905
    * Origin: - Вы в опасности! Вы окружены роботами! - (2:5030/723)