Browser can translate &#xxxx; into Chinese, but I want to get the real
UTF-8 Chinese characters.
Please kindly help, thanks!
def unescape_numeric_entities(xml)
xml.gsub(/&#(\d+);/) do |c|
[$1.to_i].pack("U") rescue c
end
end
unescape_numeric_entities(record.to_xml)