我正在尝试将一个字符串编码为RFC3986。我找到了Uri.encodeComponent方法,但它将字符串编码为RFC2396。基本上,我正在为PHP中的方法寻找一种替代方法,即rawurlencode。在php中,此方法将字符串编码为RFC3986。在Dart或Flutter中有这样的方法吗?
发布于 2020-04-27 22:59:01
所以我在Dart SDK gitter Channel找到了答案。使用Uri.encodeQueryComponent,它与encodeComponent相同,但它不使用RFC2396兼容表,而是使用RFC3986。
https://stackoverflow.com/questions/61459598
复制相似问题