HOW CAN I PRINT THE ◻️ AND THE ◼️ TO THE CONSOLE IN C?

I wrote this code: #include <stdio.h> #include <stdlib.h> #include "console.h" #define SIZE 8 // Größe des Schachbretts char *schachbrett[SIZE][SIZE];// 2D-Array für das Schachbrett void initSpielfeld(); void ausgabeSpielfeld(); void spielBeenden(); int main() { initSpielfeld(); initConsole(); ausgabeSpielfeld(); getch(); clrscr(); gotoxy(0,0); } void initSpielfeld(){ // Fülle das Schachbrett mit den richtigen Symbolen for (int i = 0; i…

php pack: how does it work with strings?

I'm trying to get multiple dates into a binary string: $line = pack("ccNNc*", 0x52, 'R', 0x51504f4e, 0x51504f4e, "utf8stringäöü"); echo($line); Output: RQPONQPON The x52 at the beginning becomes the R, the second R is ignored, the two hex values ​​work, and the string at the end is ignored again. How does this work with strings?

What encoding is used if a file begins with the following four bits?

I was given a computer science assignment where I was given four hexadecimal numbers and was asked to use them to determine the encoding. Can someone explain to me how I can figure this out? I can't find anything about it online, and unfortunately, the slides are also meaningless. As an example: a) 0xEF 0xBB…