Procs
proc encodings.normalize_encoding(encoding: string): string {....raises: [], tags: [], forbids: [].}
-
Normalize an encoding name.
Normalization works as follows: all non-alphanumeric characters except the dot used for Python package names are collapsed and replaced with a single underscore, e.g. ' -;#' becomes '_'. Leading and trailing underscores are removed.
Note that encoding names should be ASCII only.
Source Edit proc Py_normalize_encoding(encoding: string): string {....raises: [], tags: [], forbids: [].}
- Normalize an encoding name: similar to encodings.normalize_encoding(), but also convert to lowercase. Source Edit