« Previous Next »

Thread: Bugreport: XML output with oCodepage=0 produces incorrect XML

Last post 08-06-2009 10:44 AM by suhanovsergey. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 08-06-2009, 8:28 AM

    Bugreport: XML output with oCodepage=0 produces incorrect XML

    Hello!

    When oCodepage is set to 0 XMLOutputFormat writes an XML with no encoding attribute in <?xml..> section. According to standard that must be treated as UTF-8 by a parser which might result to pasring errors on non-english characters. XMLOutputFormat must write the name of the current system encoding, for instance
    <?xml version="1.0" encoding="windows-1251" standalone="yes" ?>
    .
  • 08-06-2009, 10:31 AM In reply to

    Re: Bugreport: XML output with oCodepage=0 produces incorrect XML

      0 is the current system codepage, 65001 (UTF-8), and -1 (UNICODE).

    Check out my blog for other cool tips and tricks:

    http://joelangley.blogspot.com/
  • 08-06-2009, 10:44 AM In reply to

    Re: Bugreport: XML output with oCodepage=0 produces incorrect XML

    The problem is what XMLOutputFormat writes to the file. It doesn't write encoding which means UTF-8 from XML spec point of view. See http://www.w3.org/TR/REC-xml/#sec-guessing-no-ext-info.
Page 1 of 1 (3 items)
Microsoft Communities