Data is encoded using the local codepage of the engine tier host when:
To ensure uniform and expected results when using the XML Pack, the local codepage of the engine tier host should be set for the locale that you want.