Currently, it appears to_xml will automatically escape any entities
into their corresponding &XXX representation. There's a piece in the
documentation that says "If $KCODE is set to u and encoding set to
UTF8, then escaping will NOT be performed."
Unfortunately, this doesn't appear to be the case. Even after
following the docs and ensuring that default_charset is indeed UTF-8
(actually the default for Rails nowadays), we still get encoded
characters in to_xml output.
Since our client is UTF-8 aware, we need to pass thru the UTF-8 data
intact. The only way we've found to do this is thru the following
horrible monkey-patch:
module Builder
class XmlBase
def _escape(text)
text
end
end
end
What's the proper way to do this?
Thanks,
Nate
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---