C#, 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:14 UTC
Read the original article Hit count: 336

Filed under:
|
|
|
|

Hello,

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.

Any suggestions?? Thank you to all...

© Stack Overflow or respective owner

Related posts about c#

Related posts about string