title: Charset issue of toPdf method of Blob object in Salesforce
body: <p>I need to print out Turkish characters like "ş","ç","ü" etc. in the pdf document.
  I am using the following code.</p>
  
  <pre><code>global class InvoicePDFGenerator {
  
      public static final String FORM_HTML_START = '&lt;HTML&gt;&lt;BODY&gt;';
      public static final String FORM_HTML_END = '&lt;/BODY&gt;&lt;/HTML&gt;';
  
      webservice static void generateInvoicePDF(String invoiceId){
          OppoInvoice__c invoice= [SELECT Id,Account_Name__c FROM OppoInvoice__c WHERE Id=:invoiceId];
          String pdfContent = '';
          try {
              pdfContent = '&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=content-type content=text/html;charset=iso-8859-9&gt;&lt;/meta&gt;&lt;/head&gt;&lt;body&gt;';
  
              pdfContent = pdfContent + '&lt;P&gt;' + invoice.Account_Name__c+ '&lt;/P&gt;';
              pdfContent = pdfContent + FORM_HTML_END;
          }catch(Exception e){
              pdfContent = '' + FORM_HTML_START;
              pdfContent = pdfContent + '&lt;P&gt;THERE WAS AN ERROR GENERATING PDF: ' + e.getMessage() + '&lt;/P&gt;';
              pdfContent = pdfContent + FORM_HTML_END;
          }
  
          Attachment attachmentPDF = new Attachment();
          attachmentPDF.parentId = invoice.Id;
          attachmentPDF.Name = 'Invoice.pdf';
          attachmentPDF.body = Blob.toPDF(pdfContent); //This creates the PDF content
          insert attachmentPDF;
  
      }
  }
  </code></pre>
  
  <p>I think the problem caused by from the <code>attachmentPDF.body = Blob.toPDF(pdfContent)</code> line. Do you have any idea about this issue?</p>