Bugs: Browse | Submit New | Admin

[#28115] can't parse korean / chinese chars using xml_out

Date:
2010-04-19 12:29
Priority:
3
Submitted By:
John Pope (redash)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
can't parse korean / chinese chars using xml_out

Detailed description
class GdataController < ApplicationController
require 'open-uri'
require "rexml/document"
require 'xmlsimple'
include REXML

  def getFeed
    url = "http://www.google.com/books/feeds/volumes/Q9-OQgAACAAJ"
  
    xml = open(url).read
    @obj = XmlSimple.xml_in(xml)

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => XmlSimple.xml_out(@obj) }
    end
  end

end

the output of the file is mangled using this command although it works in terminal. 
related problem here 
http://www.perlmonks.org/?node_id=573519

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item