else return string; // nothing changed, can return original
final Ruby runtime = context.runtime;
final RubyString quoted = runtime.newString(quotedBytes);
if ( runtime.is1_9() ) { // only due mysql2 compatibility
quoted.associateEncoding( UTF8Encoding.INSTANCE );
}
return quoted;
}
@JRubyMethod(name = "quoted_true", required = 0, frame = false)