Index: pkg/http/lib/src/multipart_file.dart |
diff --git a/pkg/http/lib/src/multipart_file.dart b/pkg/http/lib/src/multipart_file.dart |
index 29ef589c024c016e9f40771c3c081c67829dd2c6..a157d332de013c2ea308824e6fb3480a8f31c523 100644 |
--- a/pkg/http/lib/src/multipart_file.dart |
+++ b/pkg/http/lib/src/multipart_file.dart |
@@ -5,6 +5,7 @@ |
library multipart_file; |
import 'dart:async'; |
+import 'dart:convert'; |
import 'dart:io'; |
import 'package:path/path.dart' as path; |
@@ -70,7 +71,7 @@ class MultipartFile { |
contentType = contentType == null ? new ContentType("text", "plain") |
: contentType; |
var charset = contentType.charset; |
- var encoding = encodingForCharset(contentType.charset, Encoding.UTF_8); |
+ var encoding = encodingForCharset(contentType.charset, UTF8); |
// Make a new contentType with ensured charset. |
contentType = new ContentType(contentType.primaryType, |
contentType.subType, |