Addo Well-Known Member Licensed User Longtime User Mar 18, 2018 #1 i am trying to decode an utf8 base64 encode B4X: su.DecodeBase64(dGVzdCB1dGY4IGRlY29kZSB0ZXh0) but the output is none readable text i think its encoding issue how to set the base64 decoder encoding to utf8 ?
i am trying to decode an utf8 base64 encode B4X: su.DecodeBase64(dGVzdCB1dGY4IGRlY29kZSB0ZXh0) but the output is none readable text i think its encoding issue how to set the base64 decoder encoding to utf8 ?
Erel B4X founder Staff member Licensed User Longtime User Mar 18, 2018 #2 You are confusing different things. Bas4 64 string doesn't have any encoding. It returns an array of bytes. If and only if, the array of bytes represents a string then you can use BytesToString to convert it to a string with the correct encoding. Upvote 0
You are confusing different things. Bas4 64 string doesn't have any encoding. It returns an array of bytes. If and only if, the array of bytes represents a string then you can use BytesToString to convert it to a string with the correct encoding.