Add Python 3 example (#52)

* Add Python 3 example

Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>

* Fix: typo

Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>

---------

Signed-off-by: Francesco Bigiarini <francesco.bigiarini@gmail.com>
This commit is contained in:
Francesco Bigiarini
2026-07-28 15:16:28 +02:00
committed by GitHub
parent 62acb7f814
commit de42bf2849
7 changed files with 200 additions and 8 deletions
+2 -2
View File
@@ -13,8 +13,8 @@
void print_string(std::string_view input);
// This is a simple C++ example of how to use the Mojibake library.
// Run `make example-cpp` to compile it.
// See examples/example.c and examples/zig/example.zig for C and Zig examples.
// Run `make example-cpp` from the examples directory to compile it.
// ./build/example-cpp to run it.
int main() {
try {
constexpr std::string_view input = "Cafe\xCC\x81";