docs: move the only non-ASCII character to a one-line separate file

Unicode substitutions seem impossible in litteral blocks or
code-blocks.
This commit is contained in:
Nicolas Boulenguez
2022-07-25 07:54:42 +02:00
parent d1b32d3b1d
commit bd5bb267d8
2 changed files with 4 additions and 4 deletions

View File

@@ -109,14 +109,13 @@ This Byte_Sequence must always be encoded in the encoding defined in the
package `Sax.Encoding` (as described earlier, changing this package requires
recompiling XML/Ada). By default, this is UTF-8.
.. highlight:: ada
Therefore, if you need to set an attribute to a string encoded for
instance in iso-8859-15, you should use the subprogram
`Unicode.Encodings.Convert` to convert it appropriately.
The code would thus look as follows::
The code would thus look as follows:
Set_Attribute (N, Convert ("å", From => Get_By_Name ("iso-8859-15")));
.. literalinclude:: dom/convert.adb
:language: ada
Printing DOM tress
==================

1
docs/dom/convert.adb Normal file
View File

@@ -0,0 +1 @@
Set_Attribute (N, Convert ("å", From => Get_By_Name ("iso-8859-15")));