I'm not familiar with the enc_ APIs.

But I think the easiest way is to use

  rb_funcall(some_str, rb_intern("encode") ...

Praveen wrote:
> Forgot to mention. I am on ruby version
> 
> ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux].
> 
> Let me know if you require any info
> 
> Thanks
> 
> Praveen

-- 
Posted via http://www.ruby-forum.com/.