Lazarus

Programming => General => Topic started by: xinyiman on April 17, 2019, 12:27:05 pm

Title: A trivial question for base64
Post by: xinyiman on April 17, 2019, 12:27:05 pm
Hi guys, I have multiple strings that I need to convert to base64 and then chain them together with a type |

stringb64_1|stringb64_2|stringb64_3|

because then with a split on the character | I have to recover the three strings. I wondered | is it a font I can use or can it be a character returned by encoding in base64? Thanks for the info
Title: Re: A trivial question for base64
Post by: ASerge on April 17, 2019, 01:28:10 pm
Base64 chars: ['a'..'z', 'A'..'Z', '0'..'9', '+', '/'] and filler '='. Char '|' is not valid and can be used to separate strings, or you can encode a regular string separator in base64.
Title: Re: A trivial question for base64
Post by: xinyiman on April 18, 2019, 08:24:56 am
Thank you very much
TinyPortal © 2005-2018