Sign In/My Account | View Cart  
advertisement

Article:
 Controlling the DOCTYPE and XML Declaration
Subject: encoding = Cp1252 to encoding = UTF-8
Date: 2003-04-11 04:54:02
From: raj sekhar

when i create a xml file , its creating xml file with encoding="Cp1252" and this file when trying to open in ie6 giving an error


The XML page cannot be displayed
System does not support the specified encoding. Error processing resource 'file:///C:/test.xml'. Line 1, Position 40


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


and when i change the encoding to
encoding="UTF-8" (typing in .xml file),
i can see the perfect output in ie6.


1.what should be done at the time of creating the xml file so that it should not take encoding="Cp1252" ??


2.what should be done to support ie6 to Cp1252 format ??




Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • encoding = Cp1252 to encoding = UTF-8
    2003-04-11 07:14:51 Bob DuCharme

    Use the xsl:output element's encoding attribute to set the output encoding.


    What kind of program uses cp1252 as a default output encoding? In other words, what program are you using to create the original XML file?


    Bob



Sponsored By: