aboutsummaryrefslogtreecommitdiff
path: root/src/codec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec.rs')
-rw-r--r--src/codec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec.rs b/src/codec.rs
index 22d9000..05fcee8 100644
--- a/src/codec.rs
+++ b/src/codec.rs
@@ -47,7 +47,7 @@ pub fn encode_element(
.map(|ci| {
match char::try_from(*ci) {
Ok(c) if allowed_characters.contains(&c) => c.to_string(),
- _ => format!("%{:X}", ci),
+ _ => format!("%{:02X}", ci),
}
})
.collect()