In xHarbour's doc, it has this sample.
but when I tested using Harbour I get
Why the different result? Which one is correct?
PROCEDURE Main
LOCAL cString := "xHarbour"
LOCAL cBase64 := HB_Base64Encode( cString, Len(cString ) )
? cBase64 // result: eEhhcmJvdXI==
? HB_Base64Decode( cBase64 ) // result: xHarbour
RETURNbut when I tested using Harbour I get
eEhhcmJv\r\ndXI=\r\nWhy the different result? Which one is correct?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour