{"categories":[{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup/2"}],"enrichment":{"capability":"Encodes Unicode strings to RTF 1.5 command sequences, registering a codec that converts Unicode characters into valid RTF bytecode for international character support.","skillfed_tags":["rtf-export","unicode-codec","text-encoding"],"use_cases":["Export Unicode text to RTF documents with proper international character encoding for word processors.","Generate RTF reports or templates containing non-ASCII characters from Python applications.","Convert user-supplied Unicode strings to RTF-compatible bytecode in document generation pipelines.","Ensure backward compatibility with older RTF readers by encoding Unicode as RTF escape sequences."],"what_it_does":"rtfunicode is a codec module that bridges Unicode and RTF by converting Unicode strings into valid RTF 1.5 command sequences. When imported, it registers a new codec that allows you to call `.encode('rtfunicode')` on any Unicode string, transforming international characters into RTF escape codes of the form `\\uN?`, where N is a signed 16-bit integer and ? is a placeholder character for older RTF readers.\n\nThe package is lightweight with no external dependencies and is designed for developers who need to generate RTF documents containing non-ASCII characters. It has been maintained since 2012 and currently requires Python 3.10 or newer. The implementation is straightforward: it converts each Unicode character to its RTF command equivalent, making it useful for applications that export text data to RTF format while preserving international characters.","worth_installing":"Yes. The package is lightweight, actively maintained, has no dependencies, and solves a specific problem with a clean API. It carries permissive licensing and no known vulnerabilities. Install it if you need to generate RTF output with international characters; skip it if you don't work with RTF."},"id":"rtfunicode","links":{"html":"https://skillfed.io/packages/rtfunicode","md":"https://skillfed.io/packages/rtfunicode.md","pypi":"https://pypi.org/project/rtfunicode/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-17","license_spdx":"BSD-2-Clause","license_treatment":"permissive","name":"rtfunicode","python_support":"supports_current","summary":"Encoder for unicode to RTF 1.5 command sequences"},"popularity":{"monthly_downloads":133990,"position":11490,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3"}
