Function
docutils.parsers.rst.directives.unicode_code

Signature

unicode_code(code)

Documentation String

Convert a Unicode character code to a Unicode character. (Directive option conversion function.)

Codes may be decimal numbers, hexadecimal numbers (prefixed by 0x, x, \x, U+, u, or \u; e.g. U+262E), or XML-style numeric character entities (e.g. ☮). Other text remains as-is.

Raise ValueError for illegal Unicode code values.