Hi Joseph- I've refactored to use base64 instead so the escape format isn't relevant for my program now.
Thanks for your help- David On Sat, 3 Apr 2021 at 01:57, Joseph Donaldson <donaldso...@yahoo.com> wrote: > Hello, David, > > write is hard coded to use octal for both the native and jvm runtimes. > > There may be an alternative to using write. What specifically are you > trying to do? > > Best Regards, > Joseph Donaldson > > > On Wednesday, March 31, 2021, 3:44:07 PM PDT, David Halls < > daha...@gmail.com> wrote: > > > Hi- > > Is there a way to get write to use hex escapes instead of octal? > > i.e. instead of: > > 1:=> (write "\x01") > "\001"#<output_port:stdout> > > I'd like: > > 1:=> (write "\x01") > "\x01"#<output_port:stdout> > > I note UCS does something similar: > > 1:=> (write (utf8-string->ucs2-string "\u0001")) > #u"\001"#<output_port:stdout> > > Thanks > > David > >