Pdf 如何在对虾中打印特殊字符

Pdf 如何在对虾中打印特殊字符,pdf,prawn,Pdf,Prawn,跑虾2.0.1 数据库包含字符ntilde、aacute和eacute。这些字符是可变字符串。字体为Palatino Linotype.ttf。文本区域由以下内容定义: pdf.column_box([0, pdf.cursor], columns => 1, :width =>pdf.bounds.width, :align => :justify) do pdf.text generation_text, :inline_format => true end 当前,

跑虾2.0.1

数据库包含字符ntilde、aacute和eacute。这些字符是可变字符串。字体为Palatino Linotype.ttf。文本区域由以下内容定义:

pdf.column_box([0, pdf.cursor], columns => 1, :width =>pdf.bounds.width, :align => :justify) do pdf.text generation_text, :inline_format => true
end

当前,字符不打印,字符空间丢失,就好像字符不在那里一样。如何打印这些字符?

您的意思是显示其他字符,但不显示这3个单词?这些不是单词,而是字符的名称。这个问题不是问题,因为我们发现在输入数据库时字符被剥离,因此它不是一个对虾问题。