# nemtrif/utfcpp

UTF-8 with C++ in a Portable Way

Repository: https://github.com/nemtrif/utfcpp
Canonical: https://ross.abutalabs.com/products/utfcpp
Language: C++
License: BSL-1.0
License Family: other
Topics: portable, text, unicode, utf-16, utf-8, header-only, internationalization, cpp, cpp98
Last push: 2026-08-23T15:02:16+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 75, longevity 100
- inputs: {"age_days": 4036, "days_push": 10, "days_rel": 10, "gap_med": 123.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1987, forks 240 (observed 2026-08-28T04:06:02.850547+00:00)

## What it is
A small, header-only C++ library for handling UTF-8 encoded strings in a portable way, compatible back to C++98. It provides STL iterator-based utilities for validating, converting, and manipulating UTF-8 text, including conversion to and from UTF-16.

## Use cases
- validate that a string or file contains valid UTF-8 text
- convert UTF-8 strings to UTF-16 and back
- handle Unicode text in C++98 or legacy C++ codebases
- iterate over UTF-8 encoded characters with STL-style iterators
- add portable Unicode support to a cross-platform C++ project

## When to choose
- you need lightweight, dependency-free UTF-8 handling in C++
- your codebase must stay compatible with C++98/03
- you want an STL iterator-friendly Unicode API
- you prefer a header-only library that is trivial to deploy

## When to avoid
- you need full Unicode normalization, collation, or locale-aware processing
- your project already uses ICU or another comprehensive Unicode library
- you need CMake-based package installation as a supported workflow

## Facets
- artifact type: library
- maturity: stable
- function: internationalization, parser, serialization
- domain: developer-tools, text-editors, cross-platform
- platform: cpp, cross-platform
- tags: utf-8, utf-16, unicode, header-only, stl-iterators, cpp98

## Member repositories
- nemtrif/utfcpp (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:02.850547+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:03:00.870252+00:00, confidence not recorded.
  - readme: https://github.com/nemtrif/utfcpp (fetched 2026-08-28T04:06:02.850547+00:00, sha a6a11cfc2308)
- Data as of 2026-08-30T08:39:29.467469+00:00.
