Request.config(CoreProtocolPNames.HTTP_CONTENT_CHARSET, Consts.UTF_8)并Request.elementCharset(charset)已弃用。
现在如何使用 flutter 将请求字符集设置为 utf-8 ?
Request.Post(url)
.useExpectContinue()
.version(HttpVersion.HTTP_1_1)
.bodyString("Important stuff", ContentType.DEFAULT_TEXT)
.execute().returnContent().asBytes();
Run Code Online (Sandbox Code Playgroud)