Item13469: INCLUDE of URL ignores the character encoding

pencil
Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
%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

 

ItemTemplate edit

Summary INCLUDE of URL ignores the character encoding
ReportedBy CrawfordCurrie
Codebase
SVN Range
AppliesTo Engine
Component
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r1 - 21 Jun 2015, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy