Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP.NET (Non-Forum Related)
 UTF-8 Content type returns as ASCII
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ghostnetworks
New Member

95 Posts

Posted - 06 June 2006 :  18:48:27  Show Profile  Visit Ghostnetworks's Homepage
I need to return a XML feed as UTF-8, but no matter what I try, it always reports as ASCII

quote:

Your feed appears to be encoded as "utf-8", but your server is reporting "US-ASCII"


I tried hardcoding the content type
Response.ContentType

I tried globalization in Web.config
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />

And then I tried both at the same time.
Talk about overkill!

Out of desperation, I even tried saving all the script files as UTF-8 from notepad before re-uploading them. Don't know how much good that did, since the URL is dynamically generated.
Nothing seems to work, though.

This is a minor glitch for me, but I have a friend who needs this encoded in Shift-Jis and if I can't get it to send UTF-8, I don't know how to change to that.

Any ideas on what I can do?

TSAloha
Junior Member

USA
151 Posts

Posted - 26 December 2006 :  17:24:03  Show Profile
Eternal Second website deploys a fully XML converted (and unicode enabled with UTF-8) V3406 forum. I forgot where it is posted in Snitz forum but here is a link to their website. Perhaps they can guide you to a right direction.

http://www.eternalsecond.com/support/default.asp

Their XML Snitz Forum is fully multilingual for content delivery. Forum UI/forum messages are in English-US - i.e. works fine with Far Eastern languages, like Japanese.

BTW, Shift-JIS is one locale encoding scheme for Japanese, the most popular locale language implementation in Japan, while EUC is another (primarily for UNIX environment). Each of Shift-JIS, EUC, and UTF-8 enabled font support will be distinct and if your friend's locale machine (system locale) is Japanese Windows OS native mode, UTF-8 may not render Shift-JIS properly.



Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 27 December 2006 :  01:28:56  Show Profile  Visit MarcelG's Homepage
Ghostnetworks,
What if you begin your ASP with this ?
Response.CodePage = 65001
Response.CharSet = "utf-8"

I'm using that on oxle.com, in the first 2 lines of config.asp.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20579 Posts

Posted - 27 December 2006 :  05:40:49  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by TSAloha

Eternal Second website deploys a fully XML converted



Actually it is XHTML not XML, there is quite a significant difference
Go to Top of Page

TSAloha
Junior Member

USA
151 Posts

Posted - 27 December 2006 :  11:06:46  Show Profile
Thanks for correcting me, HuwR. I realized that later... :-(.




Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07