title: String containing Chinese character to ASCII
body: <p>This is my code, both of the two ways give the same output.</p>
  
  <pre><code>String description = "test string with 音樂";
  byte[] b = description.getBytes("US-ASCII");
  
  //first way
  char[] result = new char[b.length];       
  for ( int i = 0; i &lt; b.length; i++ ) {
      result[i] = (char)b[i];
  }
  System.out.println(new String(result)); //output - test string with ??
  
  //second way
  System.out.println(new String(b, "UTF-8")); //output - test string with ??
  </code></pre>
  
  <p>I am using <strong>Eclipse</strong> and changed console output encoding to <strong>US-ASCII</strong> under <strong>Run Configuration</strong></p>
  
  <p>Is it possible to get it as US-ASCII encoding string?</p>
  
  <p>Thanks adv!!!</p>