Expand description
UTF-8 handling utilities for safe text processing
Functionsยง
- decode_
attribute_ name - Decode attribute name ensuring valid UTF-8
- decode_
attribute_ value - Decode attribute value with unescaping
- decode_
utf8_ at_ position - Decode UTF-8 at a specific position with error reporting
- handle_
text_ node - Handle text node from XML event
- process_
text_ content - Process text content from raw bytes, ensuring valid UTF-8
- process_
text_ content_ lossy - Process text content with lossy UTF-8 conversion (replaces invalid sequences)
- validate_
utf8 - Validate UTF-8 string without copying
- validate_
utf8_ string - Validate that a string contains only valid UTF-8 characters