title: java, I get symbol instead of number like this ������
body: <p>i get temperature from serial port ,which gives symbols instead number .</p>
  
  <pre><code> try {
                      while (inputStream.available() &gt; 0) {
                          int n = inputStream.available();
                          readBuffer = new byte[n];
                          inputStream.read(readBuffer, 0, n);
                      }
                      int i=1;
                      String y = new String(readBuffer, StandardCharsets.ISO_8859_1);
                      String str = new String(readBuffer, "UTF-8");
  
                      String ye = new String(readBuffer);
                      String b = new BigInteger(1, readBuffer).toString();
                      jTextField3.setText("    " + str + "    ");
  </code></pre>