From: TAKAHASHI Masayoshi Date: 2001-11-23T15:24:40+09:00 Subject: [ruby-talk:26198] Re: NQXML Conformance (was Re: Conformance Test of XML Parsers in Ruby(20011122)) Hi, martin@v.loewis.de (Martin v. Loewis) wrote: > > Multi-byte characters are another problem. How should I handle character > > references like "&D7A3;" when Ruby can't handle that character? Is there > > any way that NQXML can reach 100.0% conformance? > > I would suggest to follow the same strategy that Expat uses: Export > all data as UTF-8 to the application. This will allow for arbitrary > input encodings, as well as for arbitrary character entities. In addition, in UTF-8, Ruby can handle it :-) %ruby -e 'p ["D7A3".hex].pack("U")' "\355\236\243" "\355\236\243" is "힣" in UTF-8. Regards, TAKAHASHI 'Maki' Masayoshi E-mail: maki@open-news.com