I am using aspPdf to convert a html page into a pdf file. And it is working fine, except from the special characters æ, ø and å.
I have this:
<!--#include file="include/connectOpen.asp"--><!DOCTYPE html><html lang="da"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body><%Response.Charset = "utf-8"Response.ContentType = "text/html; charset=utf-8"booking_id = 15vikar_id = 1Set Pdf = Server.CreateObject("Persits.Pdf")Set Doc = Pdf.CreateDocumentimportUrl = "https://www.vikarbooking.com/kontrakter/template.asp?bookingId=" & booking_id & "&vikarId=" & vikar_idDoc.ImportFromUrl importUrl, "scale=0.6; hyperlinks=true; drawbackground=true;"Filename = Doc.Save( Server.MapPath("importfromurl.pdf"), false ) Response.Write Server.MapPath("importfromurl.pdf") & " - Done!"%></body></html>
And the file Im converting is like this:
<%Response.Charset = "utf-8"Response.ContentType = "text/html; charset=utf-8"%><!DOCTYPE html><html lang="da"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --><style> body { font-family: Arial, sans-serif; background-color: #fff; font-weight: 300; font-size:20pt; }</style></head><body>Some text here with æ, ø and å</body></html>
What can I do to get æ, ø and å written to the pdf?