Displaying 2 results from an estimated 2 matches for "u0171".
Did you mean:
0171
2011 Jan 13
1
unicode&pdf font problem
Dear List,
I would like to print a plot into pdf. The problem is that the character
\U0171 is replaced by a simple 'u' (i.e. without accents) in the pdf file.
Example:
# this works fine
plot(1,type="n")
text(1,1,"print \U0171")
# this fails
pdf("trial.pdf")
plot(1,type="n")
text(1,1,"print \U0171")
dev.off()
I found an earlier...
2011 Mar 01
0
unicode&pdf font problem RESOLVED
....com/questions/3434349/sweave-not-printing-localized-characters
>>>
>>> SO HERE COMES THE SOLUTION (it works on both OSs):
>>>
>>> pdf.options(encoding = "CP1250")
>>> pdf()
>>> plot(1,type="n")
>>> text(1,1,"\U0171")
>>> dev.off()
>>>
>>> CP1250 should work for all Central-European languages:
>>> http://en.wikipedia.org/wiki/Windows-1250
>>>
>>>
>>> Thank you again,
>>> Denes
>>>
>>>
>>>
>>>&...