Open strandenzee opened 1 month ago
I didn't write the bookmarks code but it's probably this line:
Literal
encoding means Windows-ANSI, it should be switched to Hexadecimal
like this:
let bytes = text
.chars()
.flat_map(|x| {
let [b0, b1] = x.to_be_bytes();
std::iter::once(b0).chain(std::iter::once(b1))
})
.collect::<Vec<u8>>();
("Title", String(bytes, Hexadecimal)),
I am trying to add a bookmark in Unicode (Russian and Polish text in my case) but i only get some silly signs, not the letters i would like to have. Is there a way to use Unicode Bookmarks?