utf

closed account (GvMiNwbp)
i i would like to know ohow I can proceed to the bits of the utf according octet.

i that :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int binOtect(string result){

	string octect;
	
    if(binTodec(result) <= 127){
        
    }
    
    if(binTodec(result) <= 2047 && binTodec(result) > 127){

    
    }
	
    if(binTodec(result) >= 2047 && binTodec(result) < 65534){
	
    }
    
    if(binTodec(result) < 65534 &&   binTodec(result) >= 1048575){
        
    }
    return 0;
}


thanks !
what exactly are you trying to do? are you trying to convert?
Last edited on
closed account (GvMiNwbp)
Thanks for your answer !

Yes, I converted my “string” into binary and now I must look at the number of byte to do that :

7 U+0000 U+007F 1 0xxxxxxx
11 U+0080 U+07FF 2 110xxxxx 10xxxxxx
16 U+0800 U+FFFF 3 1110xxxx 10xxxxxx 10xxxxxx
Topic archived. No new replies allowed.