#include <stdio.h>

int main() {
    int a = 127;
    while (0 == 0) {
        a++;
        
        unsigned char byte1 = 0xC0 | (a >> 6);
        unsigned char byte2 = 0x80 | (a & 0x3F);
        
        // 数値と、変換したUTF-8文字を並べて表示
        printf("数値: %d = 文字: %c%c\n", a, byte1, byte2);
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: