Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have changed the <code>Regional Settings</code> in my computer to Russian and have observed that VS 2010 delivers the expected performance for all the situations (SilverLight, ASP, winforms). Note that I have done my tests with Chrome (same version than yours) and Windows 7. I don't know why happens the error you report.</p> <p>What you can do is making sure that your application will always output Russian characters, independently upon the exact configuration in the target machine. I found a quite interesting <a href="https://stackoverflow.com/questions/3079388/how-can-i-convert-cyrillic-string-into-english-in-c-sharp">post on this front</a>.; the option I like the most is the first one: relying on a conversion dictionary. Applied to your case, it would be something like this:</p> <p>Dictionary declared globally:</p> <pre><code>Dictionary&lt;string, string&gt; enToRus; </code></pre> <p>Function called at <code>Form Load</code> populating the aforementioned dictionary:</p> <pre><code>private void populateDict() { enToRus = new Dictionary&lt;string, string&gt;(); enToRus.Add("P", "П"); enToRus.Add("e", "e"); enToRus.Add("t", "т"); enToRus.Add("r", "р"); //etc. } </code></pre> <p>Method (on <code>textBox1</code> <code>TextChanged Event</code>) dealing with the character replacement in case of being applicable.</p> <pre><code>private void textBox1_TextChanged(object sender, TextChangedEventArgs e) { textBox1.Select(textBox1.Text.Length - 1, 1); if (textBox1.SelectedText.Trim().Length &gt; 0) { if (!enToRus.ContainsValue(textBox1.SelectedText) &amp;&amp; enToRus.ContainsKey(textBox1.SelectedText)) { textBox1.SelectedText = enToRus[textBox1.SelectedText]; } } textBox1.Select(textBox1.Text.Length, 1); } </code></pre> <p>Bear in mind that it comes from a pretty simplistic approach (checks whether the given character is not listed within the Russian ones before performing the change) which might drive to not so accurate results. I don't have any Russian knowledge (neither understand the exact conditions under which the problem you refer appear) and thus cannot be of further help on this front; but I guess that you will not find any problem to improve the accuracy of this pre-analysis (deciding when a character should be replaced).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload