ytang/welly

bitsunrise.com compatibility

Opened this issue · 3 comments

Hi, I use a M1 mac and saw your program. I can't use telnet bitsunrise.com without just seeing chinese characters. Can you use it normally?

Shown:

Screenshot 2022-04-13 at 12 28 45 AM

Desired (fropm SyncTERM):

Screenshot 2022-04-12 at 8 48 40 PM

Your app seems great, great job! I have been trying to get fonts to render correctly when connecting to bitsunrise.com via telnet etc. in terminal. Using your client to connect, I still see these chinese characters, and even after following a walkthrough for iterm2 itself where the instructions were to adjust iterm2 settings to chinese encoding and more, I wasn't able to get them to render. Same with your client.

I used the SyncTERM program and it worked beautifully. Except... it's low res because of macbook laptops' retina displays? There's a bug in that software to make it somewhat useable on Mac due to 1/4th of the screen being given space to the terminal. There's no full screen experience.

Thanks for the software, looking forward to your reply 🙇

ytang commented

Thanks for your compliment.

This issue is likely due to incorrect encoding. Currently, Welly supports only GBK and Big5 encodings. Standard 7-bit ASCII characters should have no issues in either encoding, but it looks like bitsunrise.com uses extended ASCII characters, which will be interpreted differently in GBK or Big5.

This issue could potentially be fixed by adding the encoding that bitsunrise.com uses in https://github.com/ytang/welly/blob/master/Welly/WLEncoder.m. However, I don't have much time to implement it right now. If you're interested in doing it, please feel free to submit pull requests.

Would it be possible for someone to somehow export the (ANSI and PETSCII) encodings from SyncTerm and import them to Welly? I'm not skilled enough to do this myself, but I think my cousin may be.

ytang commented

It could be possible. I don't have time to do it, but any contribution is welcome.