Skip to content

Commit 3bb21ec

Browse files
pfmoorebhrutledge
andauthored
Require metadata to be serialised using UTF-8 (pypa#1046)
Co-authored-by: Brian Rutledge <[email protected]>
1 parent 736c3b0 commit 3bb21ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/specifications/core-metadata.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ definition, the practical standard is set by what the standard library
2222
:mod:`python:email.parser` module can parse using the
2323
:data:`~.python:email.policy.compat32` policy.
2424

25+
Whenever metadata is serialised to a byte stream (for example, to save
26+
to a file), strings must be serialised using the UTF-8 encoding.
27+
2528
Although :pep:`566` defined a way to transform metadata into a JSON-compatible
2629
dictionary, this is not yet used as a standard interchange format. The need for
2730
tools to work with years worth of existing packages makes it difficult to shift

0 commit comments

Comments
 (0)