What is the default encoding for str.encode() in Python 3?
Correct answer
A. UTF-8
6 views
A. UTF-8
6 views
encode() defaults to UTF-8.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.