method

detect_encoding

detect_encoding(string)
public

Detects the encoding of string based on the magic comment