How do I translate 8bit characters into 7bit characters? (i.e. Ü to U)

前端 未结 15 2024
旧时难觅i
旧时难觅i 2020-12-05 10:29

I\'m looking for pseudocode, or sample code, to convert higher bit ascii characters (like, Ü which is extended ascii 154) into U (which is ascii 85).

My initial gues

15条回答
  •  一向
    一向 (楼主)
    2020-12-05 11:11

    I think you just can't.

    I usually do something like that:

    AccentString = 'ÀÂÄÉÈÊ[and all the other]'
    ConvertString = 'AAAEEE[and all the other]'

    Looking for the char in AccentString and replacing it for the same index in ConvertString

    HTH

提交回复
热议问题