How to Type convert Pipe to SOH

Imported from previous forum

[ original email was from Ameesh Kumar - akumar@greenlinetech.com ]
Hi,

Any tips on how to convert a pipe into SOH in my pipe delimited FIX message in Windows as well as in Linux?

Thx,
Ameesh

[ original email was from Srinivas Eadha - srini.eadha@latentzerotech.com ]
> Hi,

Any tips on how to convert a pipe into SOH in my pipe delimited FIX
message in Windows as well as in Linux?

Thx, Ameesh

I would use ascii values to replace them, something like this -
string temp = “Hello " + ‘|’ + " brother”;
temp = temp.Replace(‘|’, (char)01);

Srini