Kitchen.text: unicode and utf8 and xml oh my!¶
The kitchen.text module contains functions that deal with text manipulation.
- Kitchen.text.converters
- Functions
- Format Text for Display
textual_width()
textual_width_chop()
textual_width_fill()
wrap()
fill()
byte_string_textual_width_fill()
- Internal Data
- Miscellaneous functions for manipulating text
byte_string_valid_encoding()
byte_string_valid_xml()
guess_encoding()
html_entities_unescape()
isbasestring()
isbytestring()
isunicodestring()
process_control_chars()
str_eq()
- UTF-8
utf8_text_fill()
utf8_text_wrap()
utf8_valid()
utf8_width()
utf8_width_chop()
utf8_width_fill()
converters
deals with converting text for different encodings and to and from XML
display
deals with issues with printing text to a screen
misc
is a catchall for text manipulation functions that don’t seem to fit elsewhere
utf8
contains deprecated functions to manipulate utf8 byte strings