title: Selenium FirefoxDriver getText - UTF-8 encoding
body: <p>I searched the web for quit some time, and i can't figure it out.</p>
  
  <p>While using <strong>Selenium</strong> with the <strong>FirefoxDriver</strong>,
  can't perform actions on the text cuz i keep getting ???? instead of actual characters.</p>
  
  <p><em>Source file example:</em> </p>
  
  <p><a href="https://i.stack.imgur.com/MSET9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MSET9.png" alt="enter image description here"></a></p>
  
  <p><em>Java code:</em>  </p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
  </code></pre>
  
  <p>I have tried to use some profiles i found online - did not work.</p>
  
  <pre><code>FirefoxProfile profile = new FirefoxProfile();
  profile.setPreference( &lt;something&gt;, &lt;something&gt; );
  profile.setPreference( &lt;something&gt;, &lt;something&gt; );
  driver = new FirefoxDriver( profile );
  </code></pre>
  
  <p>I think the problem is in the <strong>default encoding of Firefox</strong>, witch is "western".<br>
  and <strong>i need it to be "UTF-8"</strong> , or changing according to the site. </p>
  
  <p>All answers to the questions i saw, did not solve the problem.</p>