IRONSOFTWAREHOME
Unicode & UTF-8 Support
from ironpdf import *

html = '''<p>周態告応立待太記行神正用真最。音日独素円政進任見引際初携食。更火識将回興継時億断保媛全職。
    文造画念響竹都務済約記求生街東。天体無適立年保輪動元念足総地作靖権瀬内。
    失文意芸野画美暮実刊切心。感変動技実視高療試意写表重車棟性作家薄井。
    陸瓶右覧撃稿法真勤振局夘決。任堀記文市物第前兜純響限。囲石整成先尾未展退幹販山令手北結。</p>
    <p>
    أم يذكر النفط قبضتهم على, الصين وفنلندا ما حدى. تم لكل أملا المنتصر,
    ٣٠ حدى مارد القوى. شرسة للسيطرة قامفي. حتى أم يطول المحيط,
    زهاء وحلفاؤها من فعل. لم قامت الجو الساحلية وتم, ويعزى واقتصار قبل كل.
    </p>
    <p>
    ภคนทลาพาธสตารเซฟต แชมป มารเกตตงลมเหลวโยเกรต แลนดบาบนอมครม รสโซ แบรนดไคลแมกซ พซซาโมเดลเสอโครง มอบโซนรายชอ
    แอดมชชน ดอกเตอร พะเรอ มารคเจไดโมจราสเบอรร เอนทรานซออดชนศลปวฒนธรรมเปราะบาง โมจซเรยสวอลนตทรปลเมอร ทป วาไรตบกเมเปล
    </p>'''
 
# Instantiate Renderer
renderer = ChromePdfRenderer()
 
# Render HTML string to PDF
pdfdoc = renderer.RenderHtmlAsPdf(html)
pdfdoc.SaveAs("Unicode.pdf")

pip install ironpdf
Unicode & UTF-8 Support

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.

Learn to generate PDFs with IronPDF for Python!

Ready to Get Started?

Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

OR
bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried Iron Suite
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required
Python Module Download for PDF
Install with pip

Version: 2026.9

  1. Download and install Python 3.7+.
  2. Install pip from pypi.org if it isn't installed already.
  3. Execute the above command in the terminal.
Python PDF Module
Download Module

Version: 2026.9

Manually install into your project

  1. Download the package
  2. Run this command from the terminal
    pip install ironpdf-2026.9-py37-none-win_amd64.whi

Licenses from $999