How do I convert some very short text from UTF7 to UTF8? Wikipedia says:
- Express each Base64 code as the bit sequence it represents:
AKMgIA → 000000 001010 001100 100000 001000 000000- Regroup the binary into groups of sixteen bits, starting from the left:
000000 001010 001100 100000 001000 000000 → 0000000010100011 0010000000100000 0000- If there is an incomplete group at the end containing only zeros, discard it (if the incomplete group contains any ones, the code is invalid):
0000000010100011 0010000000100000- Each group of 16 bits is a character’s Unicode (UTF-16) number and can be expressed in other forms:
0000 0000 1010 0011 ≡ 0x00A3 ≡ 16310
How do I make 000000 from an A? What is “bit sequence it represents”?
dim temp as string = Bin(EncodedPart.Left(1).AscByte)
makes a 1000001.