HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Encoding problem (æøå) › Re: Re: Encoding problem (æøå)
September 14, 2011 at 17:41
#28660
> And what is the java.net.URL base for?
base is for relative path calculations. InputStreamReader or StringReader simply provide no info to resolve relative paths.
Well, in your sample code it is not quite clear where connection variable comes from. If your source document can be addressed by URL, it is good idea to use one of render(URL) methods. In the case html.overrideDocumentEncoding(“iso-8859-1”) should work for you as expected.