How to add \0x1A (EOF) in inject node

Hello,
I'm writing a code for sending SMS with Raspberry Pi and GSM USB dongle.
I have a problem with inject node in writing a EOF character in JSON format. The flow is as follow:

[{"id":"d8eb11d.efd40f","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"2832020b.e4752e","type":"debug","z":"d8eb11d.efd40f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":510,"y":140,"wires":[]},{"id":"efc33395.0f617","type":"function","z":"d8eb11d.efd40f","name":"Send SMS Message","func":"var sms_msg = \"Hello world\";\n\nmsg.payload=sms_msg+\"\\x1A\";\n\nreturn msg;","outputs":1,"noerr":0,"x":320,"y":180,"wires":[["2832020b.e4752e"]]},{"id":"a2ffe2ca.7a614","type":"inject","z":"d8eb11d.efd40f","name":"Hello","topic":"","payload":"\"Hello world\"","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"1","x":130,"y":140,"wires":[["2832020b.e4752e"]]},{"id":"f1b5d379.20935","type":"inject","z":"d8eb11d.efd40f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"1","x":140,"y":180,"wires":[["efc33395.0f617"]]},{"id":"98b9e95c.90b698","type":"comment","z":"d8eb11d.efd40f","name":"Hello world\u001a","info":"","x":290,"y":220,"wires":[]},{"id":"d5fe7109.9e32c","type":"comment","z":"d8eb11d.efd40f","name":"Hello world","info":"","x":280,"y":120,"wires":[]}]

If I use the inject and function nodes, I can send EOF character successfully. But if I use inject node alone, I cannot get it work.

Any suggestions are greatly appreciated.

Regards,
Aung

You can use \u001a as JSON only allow unicode escapes not hex.

It works! Thank.

Merry Christmas and happy new year