Re: [xmljs-users] Atom Feeds and Encoding
Brought to you by:
djoham,
witchhunter
From: Brent J. <blj...@gm...> - 2005-08-29 17:08:22
|
> encoding: > XML for script shouldn't have a problem here. I did a check on th= e rss feed and the server isn't > specifying an encoding. Is it possible that Konfabulator is goofing up th= e string before xmljs > gets it? When I load the XML from that data source, Konqueror loses the a= ccents also. However, > Firefox does not. Just to make sure xmljs was OK, I stripped the XML from= that source down to the > bare minimum that had the accented characters. I then fed that XML into x= mljs in Firefox and > looked at the DOM tree. The accents were still there. >=20 > At this point, I'm not sure what really to do about the encoding issue. I= do have a battered G3 > Powerbook that I can use for further debugging, but I've never used Konfa= bulator and don't really > have a lot of time to learn it. Do you have any suggestions? Konfabulator is cross platform and I'm running it on a Windows machine, but I wouldn't take the time to learn it just for this problem. Here's what I did.. I downloaded the XML feed using "wget" (on Linux) which does nothing but pull it from the server and save it as a text file. Here's the first line: <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> So it's specifying an encoding there. I did notice that Firefox and IE both were translating the text. If I open the the file I downloaded with wget in Notepad it also shows correctly. So pretty much anything I open it with in Windows works. BUT, if I open the file with VIM on a Linux machine, I see garbled characters. So I suspect that most Windows apps are translating the characters correctly before sending it to xmljs, but Konfabulator on the other hand isn't doing any sort of translation even though its the Windows version, which is odd. I don't know that much about encoding, so :)=20 I'll bounce this back to the Konfab forums. > Please let me know if the namespaceAware property gets you going. I'll tr= y to look at the > exception in the next couple of days and see if I can get you a real fix.= .. That works perfectly! A real fix isn't really high priority to me. I could care less about the Atom namespaces. I just wanted to be able to parse it enough so Atom feeds could be displayed in my RSS Reader widget. Thanks for your help! - Brent |