Forum: Ruby on Rails ICONV and REXML

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
42292bf8a0acbc98862d9306b501275d?d=identicon&s=25 Daniel Waite (rabbitcreative)
on 2006-01-08 07:29
(Received via mailing list)
Hi all. I'm having trouble getting REXML to play nicely with an RSS feed
that uses an encoding type called WINDOWS-1250.

My application works when I comment out the references to the lines that
utilize the REXML library.

After visiting my app and being told that Rails could not start
properly, my
server.log file says:

FastCGI: comm with server "/var/www/hflv/public/dispatch.fcgi" aborted:
error parsing headers: malformed header 'no such file to load --
rexml/encodings/WINDOWS-1250.rb'

Now, I've search my system and that file doesn't exist ANYWHERE.

I'm pretty stumped. Anyone been here before or have any ideas?

- Rabbit

---
Ad7805c9fcc1f13efc6ed11251a6c4d2?d=identicon&s=25 Alex Young (Guest)
on 2006-01-09 11:19
(Received via mailing list)
Rabbit wrote:
> Hi all. I'm having trouble getting REXML to play nicely with an RSS feed
> that uses an encoding type called WINDOWS-1250.
While they're not quite the same, you'll probably have the best luck
with CP-1252.rb.
42292bf8a0acbc98862d9306b501275d?d=identicon&s=25 Daniel Waite (rabbitcreative)
on 2006-01-09 18:10
(Received via mailing list)
Hmm... The feed I'm trying to parse specifically uses Windows-1250 as
its
encoding type. E.g.:

<?xml version="1.0" encoding="Windows-1250" ?>


Is there a way I can override that on my end before trying to parse it?
(I
guess I can look into that.)

Thanks for the suggestion Alex. :)

- Rabbit

---
This topic is locked and can not be replied to.