We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0dd40c commit 4eaf45cCopy full SHA for 4eaf45c
src-tauri/src/helpers.rs
@@ -46,6 +46,11 @@ pub fn decode_buffer(buf: Vec<u8>) -> (String, String) {
46
{
47
// Use windows-1251 for various combinations
48
Encoding::for_label("windows-1251".as_bytes()).unwrap_or(UTF_8)
49
+ } else if chardetng_encoding == "windows-1250"
50
+ && (chardet_encoding == "iso-8859-1" || charset_normalizer_encoding == "windows-1251")
51
+ {
52
+ // Use windows-1250 for various combinations
53
+ Encoding::for_label("windows-1250".as_bytes()).unwrap_or(UTF_8)
54
} else if (chardetng_encoding == "windows-1252" && chardet_encoding == "windows-1251")
55
|| (chardet_encoding == "iso-8859-1"
56
&& (charset_normalizer_encoding == "iso-8859-2"
0 commit comments