Broader detection of UTF-8 encoding in responses.
This commit is contained in:
parent
9782ab02d5
commit
ce541c4a53
|
@ -27,7 +27,7 @@ class ResponseMetaData {
|
||||||
}
|
}
|
||||||
|
|
||||||
get isUTF8() {
|
get isUTF8() {
|
||||||
return /^utf-8$/i.test(this.charset);
|
return /^utf-?8$/i.test(this.charset);
|
||||||
}
|
}
|
||||||
|
|
||||||
forceUTF8() {
|
forceUTF8() {
|
||||||
|
|
Loading…
Reference in New Issue