Community discussions

MikroTik App
 
jeroenp
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Mon Mar 17, 2014 11:30 am
Location: Amsterdam
Contact:

[SOLVED] Why does `get` for static DNS & DHCP leases have issues with nulls in string values & how can I work around it?

Wed May 04, 2016 11:41 pm

This is at least in part caused by `:put` not printing NULL (and other characters) as HEX-escaped; see http://forum.mikrotik.com/viewtopic.php?f=9&t=108089

I will report later if that is the only cause.

--jeroen
Last edited by jeroenp on Thu May 12, 2016 12:48 am, edited 1 time in total.
 
jeroenp
Member Candidate
Member Candidate
Topic Author
Posts: 159
Joined: Mon Mar 17, 2014 11:30 am
Location: Amsterdam
Contact:

Re: Why does `get` for static DNS and DHCP leases have issues with nulls in string values and how can I work around it?

Tue May 10, 2016 11:04 am

This is actually being caused by `:put` failing to HEX-escape unprintable characters.

See [SOLVED] Anyone having a stringify function circumventing :put to displaying un-printable characters as HEX escapes?

--jeroen