- Code: Select all Expand view
- PROCEDURE Main
LOCAL cString := "xHarbour"
LOCAL cBase64 := HB_Base64Encode( cString, Len(cString ) )
? cBase64 // result: eEhhcmJvdXI==
? HB_Base64Decode( cBase64 ) // result: xHarbour
RETURN
but when I tested using Harbour I get
- Code: Select all Expand view
- eEhhcmJv\r\ndXI=\r\n
Why the different result? Which one is correct?