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

前端 未结 15 2021
旧时难觅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:16

    There is an article on CodeProject that looks good.

    Also the conversion using codepage 1251 take my interest (see other answer).

    I don't like the conversion tables, since the number of characters in Unicode are that large you easily miss one.

提交回复
热议问题