Problem : HTMLArea popups do not send HTTP headers with character encoding

Problem : HTMLArea popups do not send HTTP headers with character encoding

by Jacques Monnard -
Number of replies: 0
After having looked at the code, I found that popups launched from a HTMLArea editor (e.g. to insert an image) only send the encoding in a meta tag, and not in a HTTP header.

Now our Moodle site is in UTF-8. Since our web server by default sends an ISO-8859-1 encoding header for all pages, foreign characters in the popups appear garbled, as the HTTP header encoding overrides the one specified in the meta-tag (UTF-8) (note that this is the correct behavior, according to section 5.2.2 of the HTML 4.01 specification).

This problem doesn't occur with other Moodle pages, since they all send a raw HTTP header with the correct character encoding.

Can this be considered a bug ?

Average of ratings: -