From: Nobuyoshi Nakada Date: 2009-02-23T14:55:24+09:00 Subject: [ruby-core:22348] Re: String encoding in the C api Hi, At Mon, 23 Feb 2009 14:52:26 +0900, Aaron Patterson wrote in [ruby-core:22346]: > Is there an easy way to set my string enoding from the C api? > > rb_str_new2() gives me #, but I know that the > string is UTF-8. In include/ruby/encoding.h: VALUE rb_enc_str_new(const char*, long, rb_encoding*); -- Nobu Nakada