Solution 1 shows how to convert binary to character.
Now converting a character to binary string representation you can do e.g.
1.) Using .net library
int value = 219;
string binary = Convert.ToString(value, 2).PadLeft(8, '0');
2.) Self made
int value = 219;
StringBuilder sb = new StringBuilder(8);
while(value > 0)
{
int mod= value % 2;
if (mod == 0)
{
sb.Insert(0, "0");
}
else
{
sb.Insert(0, "1");
}
value /= 2;
}
string binary = sb.ToString().PadLeft(8, '0');
Note
Take care, you are working with Unicode for which a character has 16bit while your example assumes using 8 bit character.