Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: bill & werty

Message Too Old, No Replies

setting encoding type of rss

     

gswartz

6:29 pm on Apr 7, 2006 (gmt 0)

5+ Year Member



When I try to validate my rss feed, it gives me a warning that although my document says utf-8, the server is reporting us-ascii. I tried to go into IIS and set up a content type of text/xml for my feed, but it's still reporting us-ascii. Is there something else I need to do to get it to report as utf-8? Thanks.

encyclo

7:01 pm on Apr 7, 2006 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld, gswartz.

I'm not too familiar with IIS (I use Apache), but you need to explicitly declare the UTF-8 charset with a HTTP header, not just within the feed. The other possibility is to declare the mime type

application/rss+xml
which replaces
text/xml
and is UTF-8 by default.

gswartz

7:07 pm on Apr 7, 2006 (gmt 0)

5+ Year Member



thank you encyclo, that's exactly what I needed. now it validates fine.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month