Unicode & UTF-8 Support
IronPDF for Python fully supports Unicode text, allowing PDF documents to contain characters from any language or script — including Chinese, Arabic, Thai, and many others — without any special configuration.
Getting Started
Simply include Unicode characters in your HTML string and pass it to RenderHtmlAsPdf. IronPDF's Chrome-based rendering engine handles font selection and character encoding automatically.
Understanding the Code
RenderHtmlAsPdf(html): Accepts an HTML string containing Unicode text in any language. The renderer resolves appropriate system fonts to display the characters correctly.SaveAs("Unicode.pdf"): Saves the resulting PDF, with all Unicode characters embedded and encoded in the output file.
How Unicode Rendering Works
IronPDF uses the Chrome rendering engine, which — like a standard web browser — automatically selects the appropriate system font for each Unicode range. Characters from CJK (Chinese, Japanese, Korean), Arabic, Thai, and other scripts are rendered using the fonts available on the host operating system.
Font Availability
For production environments, ensure that fonts covering the required scripts are installed on the server. If a script is not rendering correctly, add an explicit font via a Google Fonts <link> tag or a locally hosted font file referenced with a BaseUrl.






