# Fix encoding issue by replacing special characters with standard equivalents
fixed_content = content.replace("’", "'").replace("–", "-")
# Recreate the PDF with corrected characters
pdf = FPDF()
pdf.add_page()
pdf.set_auto_page_break(auto=True, margin=15)
pdf.set_font("Arial", size=12)
pdf.multi_cell(0, 10, fixed_content)
# Save the fixed file
pdf_path = "/mnt/data/Harry_Potter_Book_Movie_Review.pdf"
pdf.output(pdf_path)
pdf_path