Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String.Replace char to string

I would like to replace the french letter Æ with the asci corresponding AE, but the method does not accept this. Is there another way?

like image 833
Bartlomiej Lewandowski Avatar asked Aug 08 '26 00:08

Bartlomiej Lewandowski


2 Answers

How about:

myString.Replace("Æ", "AE");
like image 158
CodingGorilla Avatar answered Aug 09 '26 21:08

CodingGorilla


Instead of string.Replace('Æ','AE'), use string.Replace("Æ", "AE").

like image 20
Eric Mickelsen Avatar answered Aug 09 '26 20:08

Eric Mickelsen