Retrieve Unicode code points > U+FFFF from QChar

前端 未结 3 1681
失恋的感觉
失恋的感觉 2021-01-12 11:49

I have an application that is supposed to deal with all kinds of characters and at some point display information about them. I use Qt and its inherent Unicode support in QC

3条回答
  •  执笔经年
    2021-01-12 12:38

    Each QChar is a UTF-16 value, not a complete Unicode codepoint. Therefore, non-BMP characters consist of two QChar surrogate pairs.

提交回复
热议问题