C
Christian Schwarz
Hi,
I've noticed a problem with the string.Replace() and the
StringBuilder.Replace() methods.
I try to replace the german special character "ß" (sharp spoken "ss") in
order to mask the character with "ß" for showing it in the OpenNETCF's
HTMLViewer control. The problem is, that the Replace() method finds the "ß"
in each string containing "ss". When calling Replace("ß", "ß") the
first "s" of an "ss" sequence is replaced by "ß" resulting in
"ßs"! That behaviour is bad, because "ß" isn't the same as "ss".
Is there a way to influence this behaviour? Is there another way than to
scan the string manually?
Btw, other string and StringBuilder methods (like IndexOf()) also treat "ss"
as "ß" ...
Greetings, Christian
I've noticed a problem with the string.Replace() and the
StringBuilder.Replace() methods.
I try to replace the german special character "ß" (sharp spoken "ss") in
order to mask the character with "ß" for showing it in the OpenNETCF's
HTMLViewer control. The problem is, that the Replace() method finds the "ß"
in each string containing "ss". When calling Replace("ß", "ß") the
first "s" of an "ss" sequence is replaced by "ß" resulting in
"ßs"! That behaviour is bad, because "ß" isn't the same as "ss".
Is there a way to influence this behaviour? Is there another way than to
scan the string manually?
Btw, other string and StringBuilder methods (like IndexOf()) also treat "ss"
as "ß" ...
Greetings, Christian