From: Matthias Veit Date: 2002-08-28T09:18:58+09:00 Subject: c-api: rb_str_new Hello, I have trouble using rb_str_new[2] and German umlauts. The umlauts will be escaped: c program: static VALUE test(VALUE self, VALUE word) { char *str = STR2CSTR(word); printf("got: %s\n", str); return rb_str_new2(str); } from ruby: p foo.test("F�lschung") will print: got: F�lschung "F\344lschung" Both worlds (c and ruby) handle the string correctly, but the translation fails. Do I have to adjust the encoding? Some idea? Best regards, Matthias __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com