The "Encoding..." command lets you view the current encoding of a file and select a different encoding when saving the current document the next time.
If you select a different encoding than the one in use before, the encoding-specification in the XML-declaration in the prolog will be adjusted accordingly. For 16-bit and 32-bit per character encodings (UTF-16, UCS-2, and UCS-4) you can also specify the byte-order to be used for the file.
You can also enter the new encoding into the encoding-specification of the XML-declaration. When saving a document, XML Spy automatically checks the encoding-specification and opens a dialog box if it cannot recognize the encoding name entered by the user.
If your document contains characters that cannot be represented in the selected encoding, you will get a warning message as soon as you save your file.
Previous
Top
Next