.NET string replace russian to english
Posted
by Fabio Beoni
on Stack Overflow
See other posts from Stack Overflow
or by Fabio Beoni
Published on 2010-05-14T16:05:20Z
Indexed on
2010/05/14
16:24 UTC
Read the original article
Hit count: 506
I have a strange problem replacing chars in string...
I read a .txt file containing russian text, and starting from a list of letters russian to english (ru=en), I loop the list and I WOULD like to replace russian characters with english characters.
The problem is: I can see in the debug the right reading of the russian and the right reading of the english, but using myWord = myWord.Replace(ruChar, enChar), the string is not replaced.
My txt file is a UTF-8 encoding.
© Stack Overflow or respective owner