The header option of the for xml clause is extended with a new encoding value:
header = {yes | no| encoding}
With header=encoding, the header is:
<?xml version = "1/0" encoding = "UTF-16?">
Using the encoding value indicates that the XML header should be included, and that it should contain an XML encoding declaration.
The default header option is no if:
The returns datatype is a Unicode datatype
The ncr option is non-ascii
The server character set is ISO1, ISO8859_15, ascii_7, or UTF-8.
Otherwise, the default header option is encoding.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |