diff options
| author | Noah Misch | 2017-11-11 19:10:53 +0000 |
|---|---|---|
| committer | Noah Misch | 2017-11-11 19:11:19 +0000 |
| commit | 46fb15f48a2d76beccf8d422f699373b60e954f6 (patch) | |
| tree | 2e54a0161af6ece4e744c33d5ffe44a04dda2184 /src/tutorial | |
| parent | d380d080fa0ad230d86bc5e4bc3512a199f68e43 (diff) | |
Ignore XML declaration in xpath_internal(), for UTF8 databases.
When a value contained an XML declaration naming some other encoding,
this function interpreted UTF8 bytes as the named encoding, yielding
mojibake. xml_parse() already has similar logic. This would be
necessary but not sufficient for non-UTF8 databases, so preserve
behavior there until the xpath facility can support such databases
comprehensively. Back-patch to 9.3 (all supported versions).
Pavel Stehule and Noah Misch
Discussion: https://postgr.es/m/CAFj8pRC-dM=tT=QkGi+Achkm+gwPmjyOayGuUfXVumCxkDgYWg@mail.gmail.com
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions
