S
sams
Hi @all,
I'm searching for a solution for the following problem:
I want to replace all unicode characters in a string with a valid
substituition.
For example:
string s = "Catalán";
string s2 = ModifyMyString(s); //s2 = "Catal\xC3\xA1n"
Since replacing unicode characters in a string that way, should be a
very common task, I asked myself whether there is a function in the
..NET-Framework, that does this job. Doing a s.Replace("á","\xC3\xA1")
would not be a very effective way cause there are "many" unicode
characters.
Thanks for help
Sams
I'm searching for a solution for the following problem:
I want to replace all unicode characters in a string with a valid
substituition.
For example:
string s = "Catalán";
string s2 = ModifyMyString(s); //s2 = "Catal\xC3\xA1n"
Since replacing unicode characters in a string that way, should be a
very common task, I asked myself whether there is a function in the
..NET-Framework, that does this job. Doing a s.Replace("á","\xC3\xA1")
would not be a very effective way cause there are "many" unicode
characters.
Thanks for help
Sams