distal-attribute
distal-attribute
distal-attribute
distal-attribute

Bug: XML export grid rows typo for UTF-8 encoding

Buseen52 posted 8 months ago in General

I'm exporting the results grid of a query run on a MSSQL table, and I've chosen the XML format, with UTF-8 encoding.

But the resulting file has an invalid XML declaration:

<?xml version="1.0" encoding="utf8"?>

which fails any XML validation, because it's missing the hyphen from "UTF-8" (I prefer it capitalized).

Buseen52 posted 8 months ago

The forum cropped the code, which was

xml version="1.0" encoding="utf8"

with surrounding "< ?" and "? >".

ansgar posted 8 months ago

Should be fixed in r5157

kalvaro posted 8 months ago

The forum cropped the code

@ansgar, the forum's "Source code" button doesn't seem to cope with angle brackets:

<xml version="1.0" encoding="utf8">
ansgar posted 7 months ago

Fixed that. Encoding < and > is critical in a forum, for bad bots or users which insert something like <script>do_bad_stuff();</script> here. But I found a way to leave angle bracktes only in <code> blocks, while encoding them in all other places.

ansgar posted 7 months ago

Oh shit, now the quotings don't look as wanted. Sigh...

ansgar posted 7 months ago

Got it now. Hopefully :)

kalvaro posted 7 months ago
<:-"

:)

Please login to leave a reply, or register at first.