Code:
/*########################################*/
/*########################################*/
/*########################################*/
private String String_Replace(String strText, String strFind, String strReplace)
{
try
{
int iPos = strText.IndexOf(strFind, System.StringComparison.CurrentCultureIgnoreCase);
String strReturn = "";
while (iPos != -1)
{
strReturn += strText.Substring(0, iPos) + strReplace;
strText = strText.Substring(iPos + strFind.Length);
iPos = strText.IndexOf(strFind);
}
if (strText.Length > 0) strReturn += strText;
return strReturn;
}
catch
{
return strText;
}
}
/*########################################*/
/*########################################*/
/*########################################*/
Is that what you need?
hm, You could I guess split your string into an array of bytes, replace your char there and then put it back together building a string.