Hi Experts
I am trying to genrate a header file .h that can be used in widow vased application where my compiler is C++ and I am using german chracter inside this file which need to be saved in utf-8 with BOM otherwise I am not able to use the said file in my application.
I am trying to generate the utf8 file with BOM using a a.xsl file whose contents are as follows:-
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
It is genrating the file in utf8 without BOM marker. I am not asking to write BOM in a utf8 file. Please tell me how I can generate the output in utf8 with BOM using the a.xsl file that uses msxsl program. I found by googling I can generate file with BOM by using the follow things:-
<xsl:output method="text" byte-order-mark="Yes" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
But there is no change in the result.
Can anybody tell me how to generate the correct file.
Thanks & Regards
Vikas
Last edited by vikasmailsu; May 24th, 2013 at 01:52 AM..
|