String to binary conversion and bunary to string conversion....

int thisByte = 'A';
stringOne = String(thisByte, BIN);

Using this two line we can convert "A" to "1000001"

But

int thisByte = 'ABC';
stringOne = String(thisByte, BIN);

we get 100001001000011

How is it possible???

which way we can convert "1000001" to "A" and "100001001000011" to "ABC"?

Question is what you want to achieve? You have some text; you want to see the binary text representation of the values if the individual characters?

int thisByte = 'ABC';

Single quotes (') are for single characters (one byte). " " are for strings and Strings.

groundfungus:

int thisByte = 'ABC';

Single quotes (') are for single characters (one byte). " " are for strings and Strings.

The compiler seems to do a good job if you look at the data that OP gets out of the conversion; it's the B and the C. Changing from int to long might (by accident) even work :smiley: