FilterBest.charset

string charset()

Calculates the best charset for encoding the content filtered through the best filter.

Returns

the name of the charset most suitable for encoding

the content that has been passed through the filter or null if the filter was not configured to detect this.