Sending Ctrl Z character in string

Hi all

I'm trying to send an sms with my arduino duemilanove via a GSM modem using AT commands. I'm using serial.print for the comms

A ctrl z character needs to be added at the end of the message to send it.
Can anyone please advise how to do this? It needs to be in the same string as the message, so sending serial.print(0x1a, byte) in the next line does not work.

Thanks

From memory, I was using (0x1A, BYTE) or Serial.write ("26")
not at work at the moment so can't check for sure.
hope that helps.

Any 8-bit number can be embedded in a string using the \x hexadecimal notation:

Serial.print("Stuff\x1A");

--
Check out our new shield: http://www.ruggedcircuits.com/html/gadget_shield.html