utf7 0.2.0 utf7: ^0.2.0 copied to clipboard
Provides methods to encode/decode strings to/from the utf7 format as defined in rfc 2152
import 'package:utf7/utf7.dart';
main() {
String string = "Tèxt cöntäînîng ûtf-8 chäräctérs";
String encoded = Utf7.encode(string);
String strongEncoded = Utf7.encodeAll(string);
print("UTF-7 representation: $encoded");
print("UTF-7 representation: $strongEncoded");
String decoded = Utf7.decode(encoded);
print("UTF-16 representation: $decoded");
}