method

set_encoding

set_encoding(string)
public

Sets the encoding of string based on the magic comment