我们如何使用Ruby转换一个字符串,如这个字符串:
至:
Latorre发布于 2022-01-25 15:47:09
s = ""
=> ""
s.unicode_normalize(:nfkc).capitalize
=> "Latorre" 这里有一篇关于unicode规范化的优秀文章:https://blog.daftcode.pl/fixing-unicode-for-ruby-developers-60d7f6377388
https://stackoverflow.com/questions/70851261
复制相似问题