title: Android Text File Importing
body: <p>I'm trying to import a text file to simply display in a textview using android.</p>
  
  <p>The file is called "legal" and is located in res/raw</p>
  
  <p>I use the following code to read in the file...</p>
  
  <pre><code>        BufferedReader bufferreader = new BufferedReader(new
          InputStreamReader(getResources().openRawResource(R.raw.legal), Charset.forName("UTF8")));
          String bufferLine;
          String tempText = "";
          try
          {
              while ((bufferLine = bufferreader.readLine()) != null)
              {
                  tempText = tempText + bufferLine + "\n";
              }
          }
          catch (IOException e)
          {
              e.printStackTrace();
          }
  </code></pre>
  
  <p>When I try to display tempText in a TextView, directional "smart" quotes are displayed as as unknown characters. The text file, legal, is encoded with UTF8 (used notepad++). I can't seem to figure out what the problem is.</p>