Hi, I wanted to know if there is any function in the C extension (Ruby-1.9) that can be used to convert the encoding of the string to the encoding format specified by the user (in his environment or by setting #encoding: at the beginning of .rb file). I did find 2 function namely rb_str_export and rb_str_export_locale. Not sure which one will convert the strings rightly to the format which the user is set. Could somebody guide. Thanks Praveen