mirror of
https://github.com/zaerl/mojibake.git
synced 2026-11-30 16:48:26 +01:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user