I have been able to follow the examples here and have been able to get the Chinese characters to show up if they are outside of a table, but within a cell in a table they wont.
This is the sample html code -
@{
<head>
<title>Daily Production Report 国务院公布了房</title>
</head>
}
@{
<table style="width: 61%; font-size:x-small; font-family:'Arial Unicode MS'" border="1">
<tr>
<td style="width: 78px">Date:</td>
<td style="width: 200px"> </td>
<td style="width: 80px">Order ID</td>
<td style="width: 200px">国务院公布了房</td>
<td style="width: 112px">Total Pieces</td>
<td style="width: 200px"> </td>
</tr>
</table>
}
This is the code behind -
FontFactory.Register("c:/windows/fonts/ARIALUNI.TTF");
StyleSheet style = new StyleSheet();
style.LoadTagStyle("body", "face", "Arial Unicode MS");
style.LoadTagStyle("body", "encoding", BaseFont.IDENTITY_H);
using (Document document = new Document())
{
PdfWriter.GetInstance(document, new FileStream(fileName, FileMode.Create));
document.Open();
foreach (IElement element in HTMLWorker.ParseToList(
new StringReader(HTMLData.ToString()), style))
{
document.Add(element);
}
document.Close();
}