Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for detectUTF8 (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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:
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Mar 11 22:19:38 GMT 2025
    - 28.4K bytes
    - Click Count (0)
Back to Top