summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/src/lib.rs6
1 files 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<u8> {
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);
+ }
}
}
}