From ea83037071f70694d0138fbd58ab74fa3135d828 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 23 Jan 2024 03:55:24 +0100 Subject: asdfdlldlfldlfshkhajdlleljijlehsfhhstssslehhhkd --- lib/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/lib.rs b/lib/src/lib.rs index b561f13..4f6cad5 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -58,9 +58,9 @@ pub fn decode(buf: &[u8]) -> Vec { match (decode_sym(pair[0]), decode_sym(pair[1]), decode_sym(pair[2]), decode_sym(pair[3])) { (Some(zero), Some(one), Some(two), Some(three)) => out.push((zero << 6) + (one << 4) + (two << 2) + three), (_, _, _, _) => { - // U+FFFD � REPLACEMENT CHARACTER - out.push(0xFF); - out.push(0xFD); + for b in "�".as_bytes() { + out.push(*b); + } } } } -- cgit v1.2.3