Project

General

Profile

« Previous | Next » 

Revision 40390

  • string.c (str_scrub): add ruby method String#scrub which verify and
    fix invalid byte sequence.

  • string.c (str_compat_and_valid): check given string is compatible
    and valid with given encoding.

  • transcode.c (str_transcode0): If invalid: :replace is specified for
    String#encode, replace invalid byte sequence even if the destination
    encoding equals to the source encoding.