Item13469: INCLUDE of URL ignores the character encoding
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
%INCLUDE has support for including a URL in-line into a topic. This includes a handler for http/https. However this code does not respect the encoding of the included data.
lib/Foswiki/IncludeHandlers/http.pm
While it should be possible to extract the encoding from a downloaded web page (the Content-Type header tells you) this is not currently done. Instead, it simply strips all non-ASCII from the included content.
A bigger problem is the case where the attachment is local. There
may be a
<meta http-equiv="Content-Type"
in the page, though this is by no means guaranteed.
Yuck.
--
CrawfordCurrie - 21 Jun 2015