S = “”
//S = S.DefineEncoding(Encodings.UTF8)
S = EncodeBase64(S)
System.DebugLog(“EncodeBase64:” + S)[/code]
As You can see, I tried with and without DefineEncoding.
The letter “” shall be converted to “5A==” to be used in browser (current Chrome or Firefox).
But it is converted to “w6Q=”; so, it is converted by JavaScript with atob(‘w6Q=’) and gets “messed” letter.
Any ideas what I am doing wrong?
As a “reference” I tried converting “” here https://www.base64encode.org/ which gave me “5A==”.
Even I found the solution writing this, I ut in in this forum for future ref…
A quick post to the effect of “Solution in OP” then you could mark that post as the answer. It just stops people coming in here to help when the answer is already known No biggie