It looks like you want to convert UTF-8 to UCS-4BE which I think is the same as UTF-32BE. You haven't answered the question of whether you want a Hex representation of that or not but it looks like you do.
Strings in Basic4android are always UTF-16 and are usually transformed to and from ITF-8 as they are read and written to a file. So inside Basic4android you will need to hold the characters as byte arrays if you want to handle UTF-8 and UTF-32 formats explicitly.
My ByteConverter library can convert UTF-16 strings to and from byte arrays representing any supported encoding, one of which is UTF32-BE, and the TextReader can convert Streams to and from UTF-16. The exact code you need will depend upon the source and destination of your encoded data.
It looks like you want to convert UTF-8 to UCS-4BE which I think is the same as UTF-32BE. You haven't answered the question of whether you want a Hex representation of that or not but it looks like you do.
Strings in Basic4android are always UTF-16 and are usually transformed to and from ITF-8 as they are read and written to a file. So inside Basic4android you will need to hold the characters as byte arrays if you want to handle UTF-8 and UTF-32 formats explicitly.
My ByteConverter library can convert UTF-16 strings to and from byte arrays representing any supported encoding, one of which is UTF32-BE, and the TextReader can convert Streams to and from UTF-16. The exact code you need will depend upon the source and destination of your encoded data.