Author Topic: Some UTF-8 characters break message preview  (Read 2090 times)

Offline Brettflan

  • Full Member
  • ***
  • Posts: 496
  • Gender: Male
    • TaleWorlds Forum
Some UTF-8 characters break message preview
« on: August 03, 2015, 06:23:29 PM »
We came across this particular text on our forum which exhibit the problem in question: 🇺🇸

In the full post editor, clicking the "Preview" button will give a "message body was left empty" error and won't preview. However, clicking the "Post" button (or "Save" button if editing an existing post) works without error. It's just the preview which fails.

This problem occurs here on the SMF forum as well, indicating it's a bug in SMF 2.0.x. You can easily reproduce it by simply quoting this post and then trying to preview it.
« Last Edit: July 22, 2018, 09:42:39 AM by Gwenwyfar »

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Some UTF-8 characters break message preview
« Reply #1 on: August 03, 2015, 06:26:07 PM »
Yes, this is related to the utf8mb4 fix which was added to 2.0.10 but it seems to have missed the preview.

Before 2.0.10 it would just crop your post at the symbol...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,867
    • sbulen on GitHub
Re: Some UTF-8 characters break message preview
« Reply #2 on: October 03, 2019, 07:07:55 PM »
This was reported a few times & a fix is targeted for 2.0.16 - I am going to close some dupes & keep one open:
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp