ProPresenter Japanese/Chinese character convertion (GB2312)
Hi! been testing and enjoying FreeShow so far but it has a bit of trouble handling special characters on import from ProPresenter.
Here's how the original looks
Here's how it looks after importing into freeshow
Okay, thanks. :)
All ProPresenter songs are stored in base64 format, meaning all chararters have to be converted into just 64 characters, meaning special characters have to be encoded like this as shown in your example: \'d7\'a3\'b8\'a3\'a4\'ce\'b1\'ad.
This specific unicode encoding is of type GB2312, but should be decoded to UTF-8 (祝福の杯).
We will need to redo the way text is decoded sometime, but this will not be prioritized. Maybe extracting the bytes, and using this: https://www.npmjs.com/package/text-decoder
Sorry for the late reply! Thanks for looking into it!
I think I understand, appreciate the detailed explanation!
Thank you! John
On Jun 17, 2024, at 22:06, Kristoffer Vassbø @.***> wrote:
All ProPresenter songs are stored in base64 format, meaning all chararters have to be converted into just 64 characters, meaning special characters have to be encoded like this as shown in your example: 'd7'a3'b8'a3'a4'ce'b1'ad. This specific unicode encoding is of type GB2312, but should be decoded to UTF-8 (祝福の杯).
We will need to redo the way text is decoded sometime, but this will not be prioritized. Maybe extracting the bytes, and using this: https://www.npmjs.com/package/text-decoder
— Reply to this email directly, view it on GitHub https://github.com/ChurchApps/FreeShow/issues/577#issuecomment-2173350903, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJEVBF6WRN4C3G3OXQO3QZ3ZH3NNTAVCNFSM6AAAAABJHXLZA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTGM2TAOJQGM. You are receiving this because you authored the thread.
I could not figure out a working solution. I tried iconv-lite as well as text-decoder, but they could not properly decode even the raw bytes as GB2312 unfortunately, so it might be a different unusual format. But either way I'm closing this now as the imported text can be replaced manually.
Will this link helps? https://greyshirtguy.com/blog/pro7fileformat1/
Unfortunately not @AngangGuo!