Mino260806 / MessengerPro

A mod that enhances Facebook Messenger with loads of powerful features !
515 stars 40 forks source link

Reddit title encoding #5

Closed lezsakdomi closed 2 years ago

lezsakdomi commented 2 years ago

Hi!

Seems like reddit posts have encoding problems. The special characters in the title are wrong, but the body seems right.

Screenshot_20220402-072358_Messenger

The title should read: "Elvittem a Fideszes szüleimet MZP gyűlésére... Sosem találjátok ki mi történt!"

The post from the screenshot: https://www.reddit.com/r/hungary/comments/ttxi7e/elvittem_a_fideszes_sz%C3%BCleimet_mzp_gy%C5%B1l%C3%A9s%C3%A9re_sosem/

I suggest you testing it with r/hungary, as we use a lot of diacritics in Hungarian.

I hope it will be an easy fix.

lezsakdomi commented 2 years ago

Hmm, seems like not only Reddit is affected 🤔

https://imgur.com/a/7jvof5y

Originally typed:

csak én, addigra már Anna negatív volt és én is már csak 50%ban

Became on my phone:

𝗰𝘀𝗮𝗸 𝙶𝗻, 𝗮𝗱𝗱𝗶𝗴𝗿𝗮 𝗺𝙮𝗿 𝗔𝗻𝗻𝗮 𝗻𝗲𝗴𝗮𝘁𝙺𝘃 𝘃𝗼𝗹𝘁 𝙶𝘀 𝙶𝗻 𝗶𝘀 𝗺𝙮𝗿 𝗰𝘀𝗮𝗸 50%ban

Seems like if the receiver party sends the message back to me, I see the message correctly, so only font issues happen

lezsakdomi commented 2 years ago

Hmm I experimented furthermore, probably some fancy Unicode character gets just recognized as star thus triggers bold font

Mino260806 commented 2 years ago

I understand the problem. This issue is related to non standard latin letters (ex with accents). Thanks for reporting

Mino260806 commented 2 years ago

The issue is fixed in commit: https://github.com/Mino260806/MessengerPro/commit/1458d9de2b9d424a1de5a5210fef3ae23dd9f147