You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// * Some Unicode characters transliterate to an empty string, either on purpose
/// or because deunicode does not know about the character.
/// * Some Unicode characters are unknown and transliterate to "[?]".
It isn't clear when an empty string vs [?] is used
I might want to do something different here, either detect and report an error to the user, put in my own character, etc.
A limited workaround exists
let custom_replacement = "?";"string".chars().map(|c|deunicode_char(c).unwrap_or(custom_replacement)).collect::<String>()
but deunicode does a lot more than that (spacing logic).
Originally I wanted to use my own character but I am using this for URLs and need to maintain compatibility, so I think erroring to the user and requiring them to give me a slug would be better.
From the docs
[?]
is usedA limited workaround exists
but
deunicode
does a lot more than that (spacing logic).(fork of chowdhurya#4)
The text was updated successfully, but these errors were encountered: