I would like to achieve a roundtrip like this: : (hex (char (char (hex "23"] -> "23"
but not like this: : (hex (char (char (hex "01"] -> "1" : (hex (char (char (hex "00"] -> "0" It should be possible to do this, so that W = X in the end: : (setq X "232302000000010001000F00000000000000323032342D30322D303931302D35342D3035202000000000000000002424") : (length X) -> 96 : (setq Y (chop X)) : (length Y) -> 96 : (setq W (pack (mapcar '((A) (hex (char A))) (make (while Y (link (char (hex (pack (cut 2 'Y)] -> "232320001010F0000000323032342D30322D303931302D35342D30352020000000002424" : (length W) -> 72 Am Mo., 12. Feb. 2024 um 23:56 Uhr schrieb Tomas Hlavaty < picolisp@software-lab.de>: > On Mon 12 Feb 2024 at 23:25, Thorsten Jolitz <picolisp@software-lab.de> > wrote: > > Shouldn't the (char 0) representation print to something > > like ^N or so too, like (char 1), (char 2) etc? > > ^@ > > what are you trying to achieve? > > why not use base64, for example? > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >