title: Solving error: unmappable character for encoding UTF8
body: <p>I have a maven project, the character encoding is set as UTF-8 in my parent pom.</p>
  
  <pre><code>    &lt;plugin&gt;
        &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.3.2&lt;/version&gt;
        &lt;configuration&gt;
          &lt;source&gt;1.7&lt;/source&gt;
          &lt;target&gt;1.7&lt;/target&gt;
          &lt;encoding&gt;UTF-8&lt;/encoding&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>But in the Java file, some characters like <code>` or</code> has been used and it is causing compilation error to me. </p>
  
  <p>In the Eclipse (Properties----Resource -----Text File encoding and Windows--preferences---workspace---text file encoding), I have specified the encoding as UTF-8. Please let me know how this issue can be solved. </p>
  
  <p>PERL CODE TO DO CONVERSION STUFF</p>
  
  <pre><code>use strict;
  use warnings;
  use File::Find;
  use open qw/:std :utf8/;
  
  my $dir = "D:\\files";
  
  
  find({ wanted =&gt; \&amp;collectFiles}, "$dir");
  
  sub collectFiles {
      my $filename = $_;
          if($filename =~ /.java$/){
          #print $filename."\n";
          startConversion($filename);
      }
  }
  
  sub startConversion{
      my $filename = $_;
      print $filename."\n";
      open(my $INFILE,  '&lt;:encoding(cp1252)',  $filename) or die $!;
      open(my $OUTFILE, '&gt;:encoding(UTF-8)', $filename) or die $!;
  }
  </code></pre>