Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 12th, 2005, 03:04 AM
richard borrie
Guest
 
Posts: n/a
Default Encoding problem with Froogle datafeed

Hi

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="http://www.w3.org/1999/XSL/Transform"><xsl:output method="text" /

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

response.ContentType = "text/plain
response.charset="ISO-8859-1
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

Thank


  #2  
Old November 12th, 2005, 03:05 AM
Oleg Tkachenko [MVP]
Guest
 
Posts: n/a
Default Re: Encoding problem with Froogle datafeed

richard borrie wrote:
[color=blue]
> <?xml version="1.0" encoding="ISO-8859-1" ?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="text" />[/color]

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]
http://blog.tkachenko.com
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles