如何将 UTF-8 字符串转换为大写? [英] How do I convert a UTF-8 string to upper case?
本文介绍了如何将 UTF-8 字符串转换为大写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种可移植的方式将 C 中的 UTF-8 字符串转换为大写?如果不是,Linux 的方法是什么?
Is there a portable way to convert a UTF-8 string in C to upper case? If not, what is the Linux way to do it?
推荐答案
可移植的方式是使用 Unicode 感知库,例如 重症监护室.似乎 u_strToUpper
可能对你有用正在寻找.
The portable way of doing it would be to use a Unicode aware library such as ICU. Seems like u_strToUpper
might the function you're looking for.
这篇关于如何将 UTF-8 字符串转换为大写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文