Change all accented letters to normal letters in C++

后端 未结 7 1220
迷失自我
迷失自我 2021-02-13 10:18

The question

How can you change all accented letters to normal letters in C++ (or in C)?

By that, I mean something like eéèêaàäâçc would become

7条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-13 10:51

    I know it only in theory. Basically, you perform Unicode normalization, then some decomposition, purge all diacritics, and recompose again.

提交回复
热议问题