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

sys.getdefaultencoding

Prev: sys.getallocatedblocks | Up: sys | Next: sys.getdlopenflags
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.getdefaultencoding
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import getdefaultencoding

Signature & Overview

sys.getdefaultencoding()

Return the current default encoding used by the Unicode implementation.

Usage

import sys

assert sys.getdefaultencoding() == "utf-8"

Gotchas

REPL Inspect

from sys import getdefaultencoding
help(getdefaultencoding)

Linked from

Related notes