I have a form which is being created dynamically. It has couple of fields with 1-10 in size. The form collects the data, verifies it and sends the data (form.field.value) to a cgi program. The cgi (C) program gets the data through its arguments.
cgi.exe -f1 data1 -f2 data2 ...
If I enter ampersand (!) character in the first field, it gets
cgi.exe -f1 "\041" ... (octal value)
Can anyone please give me some pointers about how to print the ascii value of it, instead of octals? Again, it is a dynamic form/field there is no special replacement at users end. They may enter anything they want.