A character encoding can be specified similar to PEP 0263 using:
# -*- coding: <encoding name> -*-
in the first line. # is replaced with the actual comment mark.
More precisely, the first line must match the regular expression:
Again # is replaced by the actual comment mark. The first group of this expression is then interpreted as encoding name.
A field is a line that has the form:
- key is a string that
value is an arbitrary string. It can span multiple line using continuation marks.
If a line starts with the continuation mark (default: ” ” [one blank]) it gets appended to the preceding line, with the continuation mark removed.