Dim hCell3 : Set hCell3 = TableRow.AddCell2("€")
The above code produce strange chars.
The charset of page is UTF-8
Response.Charset = "UTF-8"
The euro signs seems to be converted in 2 chars.
Do you have some hints?
Thanks
V
Charset and enconding
Re: Charset and enconding
Support · Nov 26, 2013
Hello,
We did some testing on our end and we are able to generate the PDF document by adding the Euro symbol without any problem. Please make sure that the characters and text which you are adding to the PDF should be supported by the font which you are setting for the page elements. Below is the sample code which we used for testing.
Document document = new Document();
Page page = new Page();
Table2 table = new Table2(100, 100, 100, 100);
Column2 columnobj1 = table.Columns.Add(50);
Column2 columnobj2 = table.Columns.Add(50);
Row2 row = table.Rows.Add();
Cell2 cellobj1 = row.Cells.Add("€");
Cell2 cellobj2 = row.Cells.Add("Text");
page.Elements.Add(table);
document.Pages.Add(page);
document.DrawToWeb();
If you continue getting the similar behavior even after using the above code then please send over sample project to our [^a|mailto:support@cete.com|opennewwindow|support^] team so that they can recreate the behavior. This information will help them to look into it further.
Thanks,
ceTe Software Support Team.