rtfunicode
Encoder for unicode to RTF 1.5 command sequences
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or newer.
- Low install friction with no runtime dependencies.
- Actively maintained with recent commits and a stable release history since 2012; last release was 2026-01-17.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive, allowing commercial and private use with minimal restrictions; attribution and license text preservation are required.
last release 2026-01-17 (209 days) · last repo commit 2026-08-14 · 19 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 133,990 downloads/mo, #11,490 on PyPI
Alternatives
Verify before relying
import rtfunicode
'RTF and unicode mix just fine! \u263A'.encode('rtfunicode')- Whether the codec handles all Unicode planes or only the Basic Multilingual Plane (BMP) via 16-bit signed integers.
- Performance characteristics when encoding large documents or streams with many non-ASCII characters.
What it is and 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.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
rtfunicode on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits and a stable release history since 2012; last release was 2026-01-17.
Requires Python 3.10 or newer.
License in practice
BSD-2-Clause is permissive, allowing commercial and private use with minimal restrictions; attribution and license text preservation are required.
Quickstart
import rtfunicode
'RTF and unicode mix just fine! \u263A'.encode('rtfunicode')
Verify before relying
- Whether the codec handles all Unicode planes or only the Basic Multilingual Plane (BMP) via 16-bit signed integers.
- Performance characteristics when encoding large documents or streams with many non-ASCII characters.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 209 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 133,990 / month, #11,490 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3 |
Evidence: rtfunicode-2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “unicode to rtf encoding”
- rtfunicodeEncodes Unicode strings to RTF 1.5 command sequences, registering a…
- striprtfConverts Rich Text Format (RTF) files to plain text, stripping…
- compressed-rtfCompresses and decompresses Rich Text Format (RTF) data using the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Markup packages
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.
Install it if you need reliable markdown-to-HTML conversion.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.
Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.
Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.
Install it if you're building tools that touch TOML files and user readability of the source matters.
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.
Install it if you need to programmatically read and extract structured data from Python docstrings.
See also mbstrdecoder · Unidecode · mutf8 · ebcdic · base2048 · latexcodec · ecoji · anyascii · fold-to-ascii · cwcwidth