title: Java compilaton issue with ß character
body: <p>I have come across a strange issue. In the below piece of code, I am searching for the presence of ß. </p>
  
  <pre><code>public static void main(String[] args) {
      char [] chArray = {'ß'};
      String str = "Testß";
      for(int i=0; i&lt;chArray.length; i++){
          if(str.indexOf(chArray[i])&gt;-1){
              System.out.println("ß is present");
              break;
          }
      }
  
  }
  </code></pre>
  
  <p>I have a web application running on JBOSS in linux, Java 6. <strong>The above code doesn't detect the presence of ß</strong> when include the code in the above specified application.
  <strong>Surprisingly, if I compile the same file in my eclipse workspace and then apply the patch in the application it runs as expected!</strong></p>
  
  <p>Points to note:</p>
  
  <ol>
  <li>The application build environment is a black-box to me, hence no idea if there is any -encoding option is present for the javac command or something like that</li>
  <li>My eclipse's JRE is java8, but the compiler version set for the project is Java6</li>
  <li><p>I changed the value from ß to unicode equivalent to \u00DF in the array declaration, but still the behavior is same.</p>
  
  <p>char [] chArray = {'\u00DF'};</p></li>
  <li><p>When I decompiled the class file generated the character array declared value was shown as 65533, which is \uFFFD, nothing but replacement character which is used for unidentified symbol. I used JD-GUI as decompiler, which I dont see trustworthy!</p></li>
  </ol>
  
  <p>Need your help folks! I am sure it is not same as: case sensitive issue of beta <a href="https://stackoverflow.com/questions/1334004/javas-equalsignorecase-fails-with-%C3%9F-sharp-s-used-in-german-alphabet">Java&#39;s equalsIgnoreCase fails with &#223; (&quot;Sharp S&quot; used in German alphabet)</a></p>
  
  <p>Thanks in advance   </p>