Special characters in R&OS PDF

I am using the R&OS PDF library to generate pdf documents in PHP. Living in Italy, unfortunately we have accented characters, which I just cannot manage to generate. I’ve looked through the instructions, and I found:

‘setup the helvetica font for use with german characters
$diff=array(196=>‘Adieresis’,228=>‘adieresis’,
214=>‘Odieresis’,246=>‘odieresis’,
220=>‘Udieresis’,252=>‘udieresis’,
223=>‘germandbls’);
$pdf->selectFont(’./fonts/Helvetica.afm’
,array(‘encoding’=>‘WinAnsiEncoding’
,‘differences’=>$diff));

Which I tried, to generate agrave and Agrave (à and the big A with an accent),
but no luck. Any help would stop me going mad!
Tony

In the line where it says:

array(‘encoding’=>‘WinAnsiEncoding’

Try the following:

array(‘encoding’=>‘UTF-8’

I’m not familiar with the library you are using so I’m not sure if it would work.

'Use a UTF encoding instead. It is a known problem in PHP of this situation already.’
How do I do that? The instruction file is very unhelpful

Tony

Use a UTF encoding instead. It is a known problem in PHP of this situation already.

I tried it, and I get a blank page

Tony