after pasting any character consisting apostrophe, fpdf converts it to a question mark
I research a lot online and I came up with the following solution but it only works when a user is typing this value, but not work when the user paste the value
this is just the short code, actual code is complex and lengthy
Thank you
import fpdf
pdf = fpdf.FPDF(format='letter')
txt = 'value coming from frontend input box after pasting apostrophe'
pdf.add_page()
pdf.add_font('Arial', '', './font/arial.ttf', uni=True) # added line
pdf.set_font('Arial', '', 12)
pdf.multi_cell(0, 5, txt, 0, 'R')
pdf.ln()
pdf.cell(0, 5, 'End')
pdf.output("splintered.pdf")