Sandy

Sandy

  • NA
  • 823
  • 65.4k

Encoding issue while generating PDF with help of NRECO

Jan 12 2018 4:54 AM
I am genrateting pdf from HTML in MVC Action.
  1. var htmlToPdf = new HtmlToPdfConverter();  
  2.         var margins = new PageMargins(); ;  
  3.         margins.Bottom = this.Bottom;  
  4.         margins.Top = this.Top;  
  5.         margins.Left = this.Left;  
  6.         margins.Right = this.Right;  
  7.         htmlToPdf.Margins = margins;  
  8.         htmlToPdf.PageWidth = this.PageWidth;  
  9.         htmlToPdf.PageHeight = this.PageHeight;  
  10.             return htmlToPdf.GeneratePdf(htmlContent, null);  
i am passing "-"  in html.
so my orginal string is gio n / C o u n t r y p o sitio nin g â € “ J u n e 3 0, 2 0 1 7
  1. Region – June 30, 2017  
after converting to pdf it is changed to
  1. Region †June 30, 2017  
How can i resolve this issue?
Thanks in advance 

Answers (1)