Specifying character encoding

The default character encoding for XML documents is utf8, which has 7-bit ASCII as a proper subset.

You can force the XML parser to use another codepage by specifying the desired encoding as the very first thing in the file:

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