toby / serde-bencode

Serde backed Bencode encoding/decoding library for Rust.
MIT License
65 stars 16 forks source link

Serialize unicode characters #18

Closed casey closed 4 years ago

casey commented 4 years ago

Currently, characters are truncated to 8 bits on serialization. This modifies serialize_char to instead serialize characters as their UTF-8 encoding, which allows non-ascii characters to be serialized and deserialized correctly.

toby commented 4 years ago

Thanks for this!

casey commented 4 years ago

You bet! Thanks for the crate ^_^