Altova XMLSpy 2023 Enterprise Edition

Superseded by Document.Encoding

 

// ----- javascript sample -----

// instead of:

// Application.ActiveDocument.SetEncoding("UTF-16");

// use now:

Application.ActiveDocument.Encoding = "UTF-16";

 

 

Method: SetEncoding (strEncoding as String)

 

Description

SetEncoding sets the encoding of the document like the menu item "File/Encoding..." in XMLSpy. Possible values for strEncoding are, for example:

 

 8859-1,

 8859-2,

 ASCII, ISO-646,

 850,

 1252,

 1255,

 SHIFT-JIS, MS-KANJI,

 BIG5, FIVE,

 UTF-7,

 UTF-8,

 UTF-16

 

 

 

© 2017-2023 Altova GmbH