On this page
  1. encodings.search_function
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

encodings.search_function

Prev: encodings.normalize_encoding | Up: encodings
Rel: encodings.CodecRegistryError, encodings.normalize_encoding
Ref: docs.python.org — encodings.search_function
Tags: #public #python3 #stdlib #encodings


Import

import encodings
from encodings import search_function

Signature & Overview

encodings.search_function(encoding)

encodings.search_function() function.

Usage

import encodings

info = encodings.search_function("utf-8")
assert info is not None and info.name == "utf-8"

Gotchas

REPL Inspect

from encodings import search_function
help(search_function)

Linked from

Related notes