[OSM-talk] Yet another PDF project
Petter Reinholdtsen
pere at hungry.com
Sat Jun 3 18:39:38 BST 2006
[Oliver White]
> I've put up a test script at:
>
> http://wiki.openstreetmap.org/index.php/PDF-API2/Encoding
>
> That works (i.e. it generates "ø"s in the PDF) but looks wrong to me -- e.g.
> why are we decoding utf8 instead of encoding it?
When I test it, I do not get an 'ø'. Are you using an UTF-8 locale in
your editor?
> Is perl even guaranteed to be using utf8 internally?
I believe newer perl versions uses UTF-8 interally, and text being
read into perl need to be tagged with charset to be correctly handled
by perl.
> Why doesn't the simpler "corefont('Helvetica', -encode=>"utf8")"
> work?
No idea. Perhaps you encode the text as UTF-8 twice?
More information about the talk
mailing list