IDNA URL encoder
Description
Note: Not fully compliant, as nameprep does nothing yet.
See also
- https://tools.ietf.org/html/rfc3490: IDNA specification
- https://tools.ietf.org/html/rfc3492: Punycode/Bootstrap specification
Methods
Name | Description |
---|---|
Requests_IDNAEncoder::adapt | Adapt the bias |
Requests_IDNAEncoder::digit_to_char | Convert a digit to its respective character |
Requests_IDNAEncoder::encode | Encode a hostname using Punycode |
Requests_IDNAEncoder::is_ascii | Check whether a given string contains only ASCII characters |
Requests_IDNAEncoder::nameprep | Prepare a string for use as an IDNA name |
Requests_IDNAEncoder::punycode_encode | RFC3492-compliant encoder |
Requests_IDNAEncoder::to_ascii | Convert a UTF-8 string to an ASCII string using Punycode |
Requests_IDNAEncoder::utf8_to_codepoints | Convert a UTF-8 string to a UCS-4 codepoint array |
User Contributed Notes
You must log in before being able to contribute a note or feedback.