Skip to main content

Module encoding

Module encoding 

Source

Functionsยง

decode_filename
Decode filename bytes with the given flags and raw data. flags bit 4: 0=UTF-8, 1=area code (locale-specific) If area code, locale_code selects encoding: 932=Shift-JIS, 949=EUC-KR, 0=system default.
normalize_path
Normalize path separators to forward slash, strip leading slashes, and drop control characters (NUL, terminal escapes, newlines) that a crafted archive could smuggle into a filename.