Parsing a UTF-16 encoded xml file in ruby
- by Matthew Toohey
Hello
I've been trying to parse a UTF-16 encoded xml file in Ruby (1.8.7), and I can't seem to find how to do it by searching (google and stack overflow)
Here's the xml file url:
http://www.abc.net.au/triplej/feeds/playout/triplejsydneyplayout.xml?_5366
Getting the xml string from Net::HTTP and passing it to REXML, then calling logger.info xmlDoc.inspect produces: <UNDEFINED> ... </>
Any ideas?
Cheers