You can try to change format prefix of ZPL code which is ^ into different one ex. ¬ using ^CC. After print command, reverse the change back to ^.
^XA
^CC¬
¬FO30,20¬FD_AB534^H¬FS
¬CC^
^XZ
The ^FH and _5e solution is also good but will not work in all cases.
If you use ^FH command it will convert everything which appear to be hex value
example - you want to print wifi password which is: _AB534^H.
Normally you would use code:
^XA
^FO50,50
^FD_AB534^H^FS
^XZ
this code will print only:_AB534
with ^FH command and replacing ^ with _5E will look like:
^XA
^FO50,50
^FH^FD_AB534_5EH^FS
^XZ
it prints: ½534^H
Password is different than _AB534^H. this is because ^FH reads _AB as a HEX value and converts it as well
using this code:
^XA
^CC¬
¬FO30,20¬FD_AB534^H¬FS
¬CC^
^XZ
output is:_AB534^H
sign ¬ can not be entered simply from keyboard (without alt+ combination) so will not be used in wifi passwords.