title: python encoding for turkish characters
body: <p>I have to read pdf books that are turkish stories. I found a library which is called pyPdf. My test function whichis the below doesn't encode correctly. I think, I need to have turkish codec packet. Am i wrong ? if i am wrong how can I solve this problem orelse how can I find this turkish codec packet? </p>
  
  <pre><code>from StringIO import StringIO
  import pyPdf,os
  
  def getPDFContent(path):
      content = ""
      num_pages = 10
      p = file(path, "rb")
      pdf = pyPdf.PdfFileReader(p)
      for i in range(0, num_pages):
          content += pdf.getPage(i).extractText() + "\n"
      content = " ".join(content.replace(u"\xa0", " ").strip().split())   
      return content
  
  if __name__ == '__main__':
      pdfContent = StringIO(getPDFContent(os.path.abspath("adiaylin-aysekulin.pdf")).encode("utf-8", "ignore"))
      for line in pdfContent:
          print line.strip()
      input("Press Enter to continue...")
  </code></pre>