import std/[unidecode]
echo unidecode(" 北京 - 广州 - 北京 ")
Expected output : Bei Jing - Guang Zhou - Bei Jing
Actual output : Bei Jing - Yan Zhou - Bei Jing
How can we all fly to the same city ?
Individual Chinese characters have multiple pronunciations, and unidecode is about stripping unicode runes rather than romanizing language. Yan's a valid unidecode here: https://en.wiktionary.org/wiki/%E5%B9%BF
And unidecode from other languages, like D's stringex, does the same.
How can we all fly to the same city ?
Don't use string representation of the data for decision making. For flying there's IATA codes