- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for detectUTF8 (0.54 sec)
-
src/archive/zip/reader.go
f.Extra = d[filenameLen : filenameLen+extraLen] f.Comment = string(d[filenameLen+extraLen:]) // Determine the character encoding. utf8Valid1, utf8Require1 := detectUTF8(f.Name) utf8Valid2, utf8Require2 := detectUTF8(f.Comment) switch { case !utf8Valid1 || !utf8Valid2: // Name and Comment definitely not UTF-8. f.NonUTF8 = true case !utf8Require1 && !utf8Require2:
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Mar 11 22:19:38 UTC 2025 - 28.4K bytes - Viewed (0)