function get_string_width changes encoding
ahorek opened this issue · comments
Pavel Rosický commented
str = 'test'.force_encoding('UTF-8')
width = pdf.get_string_width(str)
str.encoding => ASCII-8bit
NAITOH Jun commented
fixed edbd1db
Ruby on Rails TCPDF plugin
ahorek opened this issue · comments
str = 'test'.force_encoding('UTF-8')
width = pdf.get_string_width(str)
str.encoding => ASCII-8bit
fixed edbd1db