Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Encoding issue while generating PDF with help of NRECO
Sandy
Jan 12 2018 4:54 AM
98
Reply
I am genrateting pdf from HTML in MVC Action.
var htmlToPdf =
new
HtmlToPdfConverter();
var margins =
new
PageMargins(); ;
margins.Bottom =
this
.Bottom;
margins.Top =
this
.Top;
margins.Left =
this
.Left;
margins.Right =
this
.Right;
htmlToPdf.Margins = margins;
htmlToPdf.PageWidth =
this
.PageWidth;
htmlToPdf.PageHeight =
this
.PageHeight;
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
Region – June 30, 2017
after converting to pdf it is changed to
Region †June 30, 2017
How can i resolve this issue?
Thanks in advance
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Error CS0079 relative to delegates and events
Not Getting Data Nullable Exception