title: Applescript: reading a text file with utf8 class triggers error
body: <p>I want to read from a text file paragraph by paragraph and since the content of the file is in German language the file contains special characters and I understood I have to use class utf8 in order to read the character properly into the script.</p>
  
  <p>I face the problem if I use the suggested command</p>
  
  <pre><code>set txt to paragraphs of (read foo for (get eof foo)) as «class utf8»
  </code></pre>
  
  <p>I get the error</p>
  
  <pre><code>error "Can’t make {\"\tDate:\t10. J√§nner 2006 20:53\", \"\tTags:\tHase, Muffin, Paul\", \"\tLocation:\tM√ºhlgasse, Wiener Neudorf, Lower Austria, Austria\", \"\tWeather:\t-7¬∞ Clear\", \......
  </code></pre>
  
  <p>If I read the file without the «class utf8» no error occurs.</p>
  
  <p>I use the following code:</p>
  
  <pre><code>set theFile to readFile("/Users/Muffin/Documents/DayOne-Export/DayOne.md")
  -- set Shows to read theFile using delimiter return
  repeat with nextLine in theFile
  &lt;text processing&gt;
  end repeat
  
  on readFile(unixPath)
      -- prepare text file to read
      set foo to (open for access (POSIX file unixPath))
      set txt to paragraphs of (read foo for (get eof foo)) as «class utf8»
      -- set txt to paragraphs of (read foo) as «class utf8»
      close access foo
      return txt
  end readFile
  </code></pre>
  
  <p>The text file looks like this:</p>
  
  <pre><code>Date:   10. Jänner 2006 20:53&lt;br&gt;
  Tags:   Hase, Muffin, Paul&lt;br&gt;
  Location:   Mühlgasse, Wiener Neudorf, Lower Austria, Austria&lt;br&gt;
  Weather:    -7° Clear&lt;br&gt;
  
      1st Sign of Paul’s arrival
      .... Actually it was a normal morning and as usual I got up at 6 am start preparing the breakfast.
  </code></pre>
  
  <p>The error occurs directly in the <code>set txt</code> command.</p>
  
  <p>Any idea why I run into errors?</p>