[Mono-list] Problem with String.Replace()

Dick Porter dick@ximian.com
Wed, 09 Feb 2005 14:45:34 +0000


On Wed, 2005-02-09 at 14:31 +0100, Guillaume Bour wrote:
> Hello, 
> 
> I have a problem with the String.Replace function.
> 
> I want to replace the german character ess-tsett ('ß') by another, but
> it also replace double s ('ss').
> 
> Is it a normal thing, or is it a bug ?

If you're really calling the (char, char) overload, then it's a bug.  If
you're using the (string, string) overload then it's a feature (try
setting Invariant culture to make it stop happening.)

- Dick