On Tue, Feb 9, 2010 at 10:06 PM, KUBO Takehiro <kubo / jiubao.org> wrote:
> =A0rb_encoding *ucs2_enc =3D rb_enc_find("UCS-2");
> =A0rb_encoding *ucs4_enc =3D rb_enc_find("UCS-4");

Sorry, UCS-2 and UCS-4 are not defined in ruby 1.9.1.
Use UTF-16LE, UTF-16BE, UTF-32LE or UTF-32BE instead.