Skip to content

[SR-14586] XMLParser: get encoding of the XML source after parsing #3961

Open
@swift-ci

Description

@swift-ci
Previous ID SR-14586
Radar rdar://problem/77526331
Original Reporter Stefan Springer (JIRA User)
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels New Feature
Assignee None
Priority Medium

md5: e21b9fcded2fa505184f645f231ed1ad

Issue Description:

I would like to get the information about which encoding was used for the XML source after parsing (or even earlier while parsing). I see publicID and systemID for an XMLParser instance (which are not set after parsing, see https://bugs.swift.org/browse/SR-14585), but I do not see something like "encoding". Would be nice if this could be added. Note that it should bet set to UTF-8 if there is no XML declaration, as this is the default encoding for XML.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions