Closed bdedardel closed 7 years ago
Solution found in: http://stackoverflow.com/questions/3961589/android-webview-and-loaddata
private void pdfPrinter(...) {
...
if(args.getString(1) != null && !args.getString(1).equals("null") ) {
String content =
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"+
"<html><head>"+
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />"+
"<head><body>";
content += args.getString(1) + "</body></html>";
// dont forget: charset=utf-8
webview.loadData(content, "text/html; charset=utf-8", "UTF-8");
}
...
Hey thanks, I will take a look at it 👍
Hi,
I tried to generate pdf with some latin chars but without success:
In PDFGenerator.java
Any ideas ?