← Back to team overview

mahara-contributors team mailing list archive

[Bug 1639635] Re: Two-part UTF-8 characters in a TinyMCE text field, turned into question marks by embedded image processing

 

The user shared with us a Mahara page showing the affected text. Looking
at it in a hex viewer, I can see that the affected Greek letters are
two-byte UTF-8 characters, in the parts where they're displaying
correctly, and one-byte "?" characters where they're displaying
incorrectly.

So that actually suggests it may not just be something like these
characters getting split by an unfortunate str_replace(), but that we've
got some text processing function that is filtering them out.

ά : ce ac ( http://www.mclean.net.nz/ucf/?c=U+03AC )
έ : ce ad ( http://www.mclean.net.nz/ucf/?c=U+03AD )
ό : cf 8c ( http://www.mclean.net.nz/ucf/?c=U+03CC )

? : 3f ( http://www.mclean.net.nz/ucf/?c=U+003F )

** Attachment added: "imagetest - ATS2020.html"
   https://bugs.launchpad.net/mahara/+bug/1639635/+attachment/4773657/+files/imagetest%20-%20ATS2020.html

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1639635

Title:
  Two-part UTF-8 characters in a TinyMCE text field, turned into
  question marks by embedded image processing

Status in Mahara:
  In Progress

Bug description:
  As reported on the forum:
  https://mahara.org/interaction/forum/topic.php?id=7723&post=31207

  A user reported that Greek characters with accent marks (ό έ ά) get
  turned into question marks (? ? ?) if they're in a TinyMCE text box,
  and the user embeds images into that text box. It only happens when
  images are involved, which suggests it's a bug in the TinyMCE embedded
  image processor, possibly from us failing to use multibyte string
  functions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1639635/+subscriptions


References