• Swedish Char

    From Max@1:103/705 to Digital Man on Thu Jan 25 15:22:21 2024
    Are there any of your scripts that translate PC1252 to CP437? Most emails print Swedish
    characters incorrectly. The ones in utf8 work fine, but not the others. Have tried most
    html_decode, html2asc etc. but they don't touch the swedish ”””. These lines translate
    correctly, so they are everywhere now:

    text = text.replace(/\xE5/g,"\x86").replace(/\xE4/g,"\x84").replace(/\xF6/g,"\x94");
    text = text.replace(/\xC5/g,"\x8F").replace(/\xC4/g,"\x8E").replace(/\xD6/g,"\x99");


    /Max

    ---
    þ Synchronet þ Pepzi - Pepzi.net - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Max on Thu Jan 25 11:54:53 2024
    Re: Swedish Char
    By: Max to Digital Man on Thu Jan 25 2024 03:22 pm

    Are there any of your scripts that translate PC1252 to CP437?

    No.

    Most emails
    print Swedish
    characters incorrectly. The ones in utf8 work fine, but not the others. Have tried most
    html_decode, html2asc etc. but they don't touch the swedish ”””. These lines translate
    correctly, so they are everywhere now:

    text = text.replace(/\xE5/g,"\x86").replace(/\xE4/g,"\x84").replace(/\xF6/g, "\x94"); text = text.replace(/\xC5/g,"\x8F").replace(/\xC4/g,"\x8E").replace (/\xD6/g,"\x99");

    Are those the *only* transpositions needed for PC1252 to CP437?
    --
    digital man (rob)

    This Is Spinal Tap quote #21:
    So when you're playing you feel like a preserved moose on stage?
    Norco, CA WX: 61.6øF, 70.0% humidity, 3 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Max@1:103/705 to Digital Man on Thu Jan 25 22:30:57 2024
    Re: Swedish Char
    By: Digital Man to Max on Thu Jan 25 2024 11:54:53

    text = text.replace(/\xE5/g,"\x86").replace(/\xE4/g,"\x84").replace(/\xF6/g, "\x94"); text =
    text.replace(/\xC5/g,"\x8F").replace(/\xC4/g,"\x8E").replace (/\xD6/g,"\x99");

    Are those the *only* transpositions needed for PC1252 to CP437?

    There are more like ‚ etc, but they are the only ones I need, which stand for †„”Ž™.

    /Max

    ---
    þ Synchronet þ Pepzi - Pepzi.net - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Max on Thu Jan 25 13:52:00 2024
    Re: Swedish Char
    By: Max to Digital Man on Thu Jan 25 2024 10:30 pm

    Re: Swedish Char
    By: Digital Man to Max on Thu Jan 25 2024 11:54:53

    text = text.replace(/\xE5/g,"\x86").replace(/\xE4/g,"\x84").replace(/\xF6/g, "\x94"); text =
    text.replace(/\xC5/g,"\x8F").replace(/\xC4/g,"\x8E").replace (/\xD6/g,"\x99");

    Are those the *only* transpositions needed for PC1252 to CP437?

    There are more like ‚ etc, but they are the only ones I need, which stand for †„”Ž™.

    And you're doing these transpositions (in JS) where exactly? There internal message reader is implemented in C++, so, it seems there may be user cases not covered by your solution.
    --
    digital man (rob)

    Rush quote #58:
    Because for strangers and arrangers, constant change is here to stay
    Norco, CA WX: 63.3øF, 59.0% humidity, 4 mph W wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Max@1:103/705 to Digital Man on Fri Jan 26 04:33:52 2024
    Re: Swedish Char
    By: Digital Man to Max on Thu Jan 25 2024 13:52:00

    And you're doing these transpositions (in JS) where exactly? There internal message reader is implemented in C++, so, it seems there may be
    user cases not covered by your solution.
    --
    digital man (rob)

    Can't find them all now, but in msglist.js, rss-atom.js are there, now see that it is mostly in files that you did not make,
    several locations in DDMsgReader.js as well as files on the web page.
    but converts the other way around there, like in 001-forum.ssjs and 002-recent-visitors.xjs

    /Max

    ---
    þ Synchronet þ Pepzi - Pepzi.net - 1000/1000 MBits
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Max on Thu Jan 25 19:58:28 2024
    Re: Swedish Char
    By: Max to Digital Man on Fri Jan 26 2024 04:33 am

    Re: Swedish Char
    By: Digital Man to Max on Thu Jan 25 2024 13:52:00

    And you're doing these transpositions (in JS) where exactly? There internal message reader is implemented in C++, so, it seems there may be user cases not covered by your solution.
    --
    digital man (rob)

    Can't find them all now, but in msglist.js, rss-atom.js are there, now see that it is mostly in files that you did not make,
    several locations in DDMsgReader.js as well as files on the web page.
    but converts the other way around there, like in 001-forum.ssjs and 002-recent-visitors.xjs

    Yeah, I think you'd need something more systemic, likely at the SMBLIB (C library) layer, to really get proper transposition of those characters for you. But if those JS hacks are working for, go for it! :-)

    I did write msglist.js, btw. :-)
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #64:
    RIP = Remote Imaging Protocol (e.g. RIPscrip)
    Norco, CA WX: 53.9øF, 89.0% humidity, 4 mph NW wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)