title: Aspose.Pdf: Why are Chinese characters "Blanked Out"?
body: <p>I am using a PDF generation library called Aspose.Pdf. I love this library, but I am having a problem getting Chinese characters to show up in a PDF. I am using the following code to generate the PDF in C#.NET MVC:</p>
  
  <pre><code>var pdf = new Aspose.Pdf.Generator.Pdf();
  pdf.IsLandscape = true;
  pdf.HtmlInfo.CharsetApplyingLevelOfForce = Aspose.Pdf.Generator.HtmlInfo.CharsetApplyingForceLevel.EnforceUseAlways;
  pdf.HtmlInfo.CharSet = "UTF-8";
  pdf.HtmlInfo.BadHtmlHandlingStrategy = Aspose.Pdf.Generator.BadHtmlHandlingStrategy.TreatAsPlainText;
  pdf.BindHTML(htmlString);
  pdf.SetUnicode();
  pdf.Save(fullFilePath);
  </code></pre>
  
  <p>The value inside the htmlString variable is:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body style="font-family: 'Arial Unicode MS',Arial,sans-serif; "&gt;
      &lt;center&gt;&lt;h3&gt;Corrective Action Plans PDF&lt;/h3&gt;&lt;/center&gt;
      &lt;table style="padding: 5px; font-size: 8pt; border: 1px solid #000000;" cellpadding="5"&gt;
              &lt;tr style="border: 1px solid #000000;" bgcolor="#4D94FF"&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          ID
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          Status
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          审计类型
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          审核表格
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          Category
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          问题
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          Location ID
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          Location
                      &lt;/th&gt;
                      &lt;th style="border: 1px solid #000000;" width="11%"&gt;
                          Start Date
                      &lt;/th&gt;
              &lt;/tr&gt;
              &lt;tr style="border: 1px solid #000000;" bgcolor="#CCCCCC"&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          1260
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          New
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          CAM Forms
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          CAM Form 4 - All Action Plan Options
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          CAM4: Use Action Plan
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          Droplist Non-Compliant
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          017
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          ANGLETON
                      &lt;/td&gt;
                      &lt;td style="border: 1px solid #000000;" width="11%"&gt;
                          2014/2/13 14:00:00
                      &lt;/td&gt;
              &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As you can see, there are Chinese characters in the HTML markup, in the header row of the table. But, the values are being "blanked out" in the resulting PDF document.</p>
  
  <p>Can anyone help me with this?</p>