1
Answer

Encoding issue while generating PDF with help of NRECO

Sandy

Sandy

7y
129
1
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)
0
Mukesh Nayak

Mukesh Nayak

NA 1.5k 317.4k 7y
Hi Sandy,
 
I think you have your answer in the following link :-
 
https://stackoverflow.com/questions/32874439/getting-%C3%A2%E2%82%AC-encoding-errors-with-nreco-html-to-pdf
 
You can refer following link too:
 
https://stackoverflow.com/questions/47927264/change-%C3%A2-%C2%AC-symbol-saved-in-database-to-%E2%82%AC-euro-symbol-in-fpdf-php
 
Regards,
Mukesh Nayak