Split utf8 string into array of chars

后端 未结 6 1920
别那么骄傲
别那么骄傲 2021-01-14 05:26

I\'m trying to split a utf8 encoded string into an array of chars. The function that I now use used to work, but for some reason it doesn\'t work anymore. W

6条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 05:46

    I found out the é was not the character I expected. Apparently there is a difference between né and ńe. I got it working by normalizing the string first.

提交回复
热议问题