Skip to content

Commit 62a9df7

Browse files
committed
overwrite charset to be utf8
1 parent a859cf3 commit 62a9df7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/dom/meta_transformers.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class ViewPortTransformer implements DomTransformer {
2121
viewportNeedsToBeAdded = false;
2222
metaElement.attributes['content'] =
2323
'width=device-width, initial-scale=1.0';
24+
} else if (metaElement.attributes['charset'] != null) {
25+
metaElement.attributes['charset'] = 'utf-8';
2426
} else {
2527
final httpEquiv = metaElement.attributes['http-equiv'];
2628
if (httpEquiv != null && httpEquiv.toLowerCase() == 'content-type') {

0 commit comments

Comments
 (0)