method

quote_string

quote_string(str, charset)
private

No documentation available.

# File lib/net/http/generic_request.rb, line 286
  def quote_string(str, charset)
    str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset
    str.gsub(/[\\"]/, '\\\&')
  end