Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What character encoding does the generated code use?

character code encoding
0
Posted

What character encoding does the generated code use?

0

XSD has built-in support for two character types: char and wchar_t. You can select the character type with the –char-type command line option. The default character type is char. The character encoding depends on the character type used. For the char character type the default application encoding is UTF-8. However, you can configure the character encoding that should be used by the object model using the –char-encoding options. As an argument to this option you can specify iso8859-1, lcp (Xerces-C++ local code page), and custom. The custom option allows you to support a custom encoding. For this to work you will need to implement the transcoder interface for your encoding (see the libxsd/xsd/cxx/xml/char-* files for examples) and include this implementation’s header at the beginning of the generated header files (see the –hxx-prologue option). When the local code page encoding is specified the Xerces-C++ XMLString::transcode functions are used for character conversion. On some plat

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123