[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #52932] XML doesn’t default to UTF-8
From: |
Bruno Haible |
Subject: |
[bug #52932] XML doesn’t default to UTF-8 |
Date: |
Tue, 1 Oct 2024 15:37:32 -0400 (EDT) |
Update of bug #52932 (group gettext):
Status: Need Info => Not a Bug
Assigned to: None => haible
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #3:
> XML's default encoding, when the file lacks a BOM, or an encoding statement,
is UTF-8
https://www.w3.org/TR/xml/#charencoding says more in detail:
"In the absence of information provided by an external transport protocol
(e.g. HTTP or MIME), it is a fatal error for an entity including an encoding
declaration to be presented to the XML processor in an encoding other than
that named in the declaration, or for an entity which begins with neither a
Byte Order Mark nor an encoding declaration to use an encoding other than
UTF-8."
Since GNU gettext does not have a mechanism for communicating "information
from an external transport protocol", it is safer to not assume UTF-8.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?52932>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #52932] XML doesn’t default to UTF-8,
Bruno Haible <=