By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

Encoding problem with Froogle datafeed

P: n/a

I am generating a datafile for a Froogle (Google) shop submission, and having some problems. Apparently the file is not valid because it has a UTF-8 byte order marker where as Froogle requires it to be "ASCII" or "Latin". The file is generated by a server-side XSL transform of our XML product list

This is the encoding on the XML product list

<?xml version="1.0" encoding="ISO-8859-1"?

This is the start of the XSL which does the transform

<?xml version="1.0" encoding="ISO-8859-1" ?><xsl:stylesheet version="1.0" xmlns:xsl=""><xsl:output method="text" /

This is the part of the ASPX program which generates the file using the XSL

response.ContentType = "text/plain
response.AddHeader ("Content-Disposition", "attachment;filename=froogle.txt"

Can anyone tell me why I am apparently generating a UTF-8 byte marker in the resulting file

Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
richard borrie wrote:
<?xml version="1.0" encoding="ISO-8859-1" ?><xsl:stylesheet version="1.0" xmlns:xsl=""><xsl:output method="text" />

Encoding of the stylesheet has nothing to do with output encoding. To
control it use
<xsl:output method="text" encoding="ISO-8859-1"/>

Oleg Tkachenko [XML MVP, XmlInsider]
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.