Antw: Re: [Mapbender-users] German 'Umlauts' in PDF-Print
Ronald Woita
Ronald.Woita at rostock.de
Wed Aug 6 05:19:50 EDT 2008
Hi Marc,
thanks for your reply Marc-
'file printPDF.conf' only delivers this result--> PHP text File,
but 'less printPDF.conf' displays correct characters on a bash.
But if I convert the string to ISO-8859-1 (see below) everything is fine ?!
-->
# labeling
if(CHARSET=="UTF-8"){
$new_comment1 = utf8_decode($_REQUEST["comment1"]);
$new_comment2 = utf8_decode($_REQUEST["comment2"]);
}
else{
$new_comment1 = $_REQUEST["comment1"];
$new_comment2 = $_REQUEST["comment2"];
}
$text1 = utf8_decode("GeoPort.HRO");
$text2 = utf8_decode"das GeodatenPortal für die";
$text3 = utf8_decode"Hansestadt Rostock und Umgebung";
$text4 = utf8_decode"";
$text5 = utf8_decode("Maßstab ca. 1:"). " ".$_REQUEST["map_scale"];
<--
If I understand this in the correct manner, then the pdf class seems to use ISO encoding ?
greets
Ronald
>>> jansen.marc at gmx.de 06.08.2008 10:01 >>>
Hi Ronald,
when you edited the printPDF.conf, did you save the file UTF8-encoded?
What is the output of:
file printPDF.conf
(on a linux-prompt, assuming your installation is running on a linux system)
Have you tried e.g. iconv? (make sure you've got a backup)
--Marc
Ronald Woita schrieb:
> Hi list,
>
> I'm still working on the pdf printing process...
> There is text with 'umlauts' in my printPDF.conf, but these 'umlauts'
> does'nt display correct in the pdf-document.
> I just tried to replace the 'umlauts' with html notation, but this
> does'nt work too.
> The whole system enviroment is configured as UTF-8, eg. OS, database,
> Apache... so I don't know, what's the cause of it.
> Does anybody get an idea, how to solve this issue ?
>
> Mapbender 2.5 rc5
> PostgreSql 8.3
> UTF-8
>
>
> greets
> Ronald
>
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>
_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users
More information about the Mapbender_users
mailing list