Logo
Explore Help
Register Sign In
finn/crosspoint-reader
1
0
Fork 0
You've already forked crosspoint-reader
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
e548bfc0e14576511bdc34f1474848426d9b46d2
crosspoint-reader/lib/Utf8/Utf8.h

8 lines
126 B
C
Raw Normal View History

Public release
2025-12-03 22:00:29 +11:00
#pragma once
#include <cstdint>
fix: render U+FFFD replacement character instead of ? (#366) The current behavior of rendering `?` for an unknown Unicode character can be hard to distinguish from a typo. Use the standard Unicode "replacement character" instead, that's what it's designed for: https://en.wikipedia.org/wiki/Specials_(Unicode_block) I'm making this PR as a draft because I'm not sure I did everything that was needed to change the character set covered by the fonts. Running that script is in its own commit. If this is proper, I'll rebase/squash into one commit and un-draft. Co-authored-by: Maeve Andrews <maeve@git.mail.maeveandrews.com>
2026-01-19 05:58:43 -06:00
#define REPLACEMENT_GLYPH 0xFFFD
Public release
2025-12-03 22:00:29 +11:00
uint32_t utf8NextCodepoint(const unsigned char** string);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 1601ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API