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 093cfea commit 0010944Copy full SHA for 0010944
src/files.rs
@@ -254,7 +254,7 @@ pub(crate) fn guess_content(
254
// ISO-8859-1 aka Latin 1), treat them as such.
255
let (latin1_str, _encoding, saw_malformed) = encoding_rs::WINDOWS_1252.decode(bytes);
256
if !saw_malformed {
257
- let num_null = utf16_string
+ let num_null = latin1_str
258
.chars()
259
.take(5000)
260
.filter(|c| *c == std::char::REPLACEMENT_CHARACTER || *c == '\0')
0 commit comments