[Lazarus] Base64 broken in json?

"Leonardo M. Ramé" l.rame at griensu.com
Mon Jun 1 20:23:46 CEST 2015


El 30/05/15 a las 13:29, silvioprog escibió:
> On Sat, May 30, 2015 at 12:14 PM, "Leonardo M. Ramé" <l.rame at griensu.com
> <mailto:l.rame at griensu.com>> wrote:
>
>
> [Window Title]
> project1
>
> [Content]
> { "var1" : "bGVvbmFyZG8=" } - leonardo
>
> [OK]
>
> But after take a look at your code, it seems better to use as:
>
> myString := '{ "var1": "' + StringToJsonString(Base64EncodedString) + '" }'
>
> Because function "StringToJsonString" will encode string in a
> JSON-escape string.
>

Hi Silvio, can you try encoding the attached file, then output using 
both methods?.

Leonardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plantilla-original.ott
Type: application/vnd.oasis.opendocument.text-template
Size: 41956 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150601/7b41e893/attachment.ott>


More information about the Lazarus mailing list