encode static method
Encodes the utf-8 string
to the corresponding utf-7 string.
Does not encode "set O" characters, encodeAll should be used if used in a place where those characters have special meaning.
Implementation
static String encode(String string) {
return _encode(string, _isInLooseSet);
}