473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems with Norwegian letters when integrating RSS feeds in webpage using ASP

Hi!

We need to integrate an RSS feed in a webpage using ASP.

I've been testing out the great script at ByteScout:

http://bytescout.com/how_to_display_rss_using_asp.html

It worked very well, but I couldn't make it work with feeds using
Norwegian characters (æ, ø, å), e.g. Aftenposten:

www.aftenposten.no/eksport/rss-1_0/

The script simply crashed.

Any help would be appreciated.

Thanks!

Hermund

Sep 20 '06 #1
1 1867


no*********@laboremus.no wrote:

We need to integrate an RSS feed in a webpage using ASP.

I've been testing out the great script at ByteScout:

http://bytescout.com/how_to_display_rss_using_asp.html

It worked very well, but I couldn't make it work with feeds using
Norwegian characters (æ, ø, å), e.g. Aftenposten:

www.aftenposten.no/eksport/rss-1_0/
The script is not so great, if you want to parse XML and that is served
as text/xml or application/xml then MSXML and XMLHTTP do all the work
for you by populating responseXML so doing e.g.

URLtoRSS = "www.aftenposten.no/eksport/rss-1_0/
Set xmlHttp = CreateObject("MSXML2.ServerXMLHTTP.3.0")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send

Set xmlDOM = xmlHttp.responseXML

suffices (although I would strongly suggest to check xmlHttp.status
first, the access responseXML and check responseXML.parseError.errorCode
before trying to parse out stuff from the XML document).

Using responseText as that script does will fail if the XML is not UTF-8
encoded.

Note that I have not checked whether the rest of that script makes any
sense for parsing the example feed.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Sep 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Frost | last post by:
Greetings all. I'm attempting to embed a python interpreter at a very low level in an OS I am writing. Currently I'm stuck with build issues. Firstly, as there is no working C compiler in our OS, I...
5
by: Mike Mella | last post by:
If I make an RSS feed of my site, am I expected to build and later update the RSS (XML) data by hand as I would any other webpage, or is there some process by which updates to a site are...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
3
by: Mike | last post by:
I want to create a ticker type app that consume RSS feeds from several sites, where can i find some informaton or code snippets now how to consume the RSS feeds and display the data?
2
by: Robin Tucker | last post by:
(note, this is a C# or VB.NET ambivalent question....) Hi, Have a slight problem with a library I'm using here (which I have the source code for). It has data files serialized with an...
2
by: Cerebral Believer | last post by:
Hi folks, Can anyone help me with this form: http://futurebydesign-music.com/_member/club_fbd_reg.php I have followed to coding instructions aas closely as I can, but I am getting errors...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
13
by: charliefortune | last post by:
I am fetching some product feeds with PHP like this $merch = substr($key,1); $feed = file_get_contents($_POST); $fp = fopen("./feeds/feed".$merch.".txt","w+"); fwrite ($fp,$feed); fclose...
1
by: Victory | last post by:
Starting a blog - what do I do about feeds? I am starting a blog and notice that there are quite a few "feed" places like Yahoo, Odeo, feedburner etc. Is there a way to automatically update...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.