Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
just i want to replace this '\00C7' characters to 'M'.

i have tried this way but its not working.
C#
string s = xDoc.SelectSingleNode("//s1").InnerText; //s=C\00C7TCH
string v= sCompanyNameG.Replace("\00C7", "A");


any solution for this.
Posted
Updated 26-Jun-14 23:09pm
v2
Comments
devchina 27-Jun-14 6:28am    
How can i replace this 'Ç' to 'C' in C#

1 solution

You need to proper escape unicode and replace the A by M.
string v= sCompanyNameG.Replace("\u00C7", "M");

Good luck!
 
Share this answer
 
Comments
devchina 27-Jun-14 6:27am    
How can i replace this 'Ç' to 'C' in C#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900