mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 13:16:53 +00:00
feat: [GODT-360] detect charset embedded in html and xml
This commit is contained in:
@ -174,7 +174,7 @@ func convertHexToUTF(charset, value string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
utf8, err := DecodeCharset(raw, map[string]string{"charset": charset})
|
||||
utf8, err := DecodeCharset(raw, "text/plain; charset="+charset)
|
||||
return "utf-8''" + percentHexEscape(utf8), err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user