Hallo,
ich habe da ein Problem mit einer ColdFusion Component.
Die CFC generiert mir PDF's aus einem Query. Allerdings werden sämtliche Umlaute "gekillt". In der DB stehen sie richtig drin und wenn ich das Query in Flash ausgebe erscheinen die Umlaute ganz normal. Da die Umlaute nicht durch Glyphen ersetzt werden, sondern vollkommen rausfliegen, schliesse ich ein Charset Problem aus.
Hier mal der Code von der CFC:
PHP-Code:
<cffunction name="pdfmaker" returntype="any" access="remote" description="pdf erstellen">
<cfargument name="parameter" default="" required="no" description="wird net gebraucht"/>
<cfquery name="dates" datasource="meineDB">
SELECT * FROM `events` ORDER BY jahr DESC, monat DESC, tag DESC, id DESC
</cfquery>
<cfsavecontent variable="pdftemp">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Opeltreffen 2006</title>
<style type="text/css">
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
body {
background-color: #CCCCCC;
margin: 50px;
}
a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
}
a:visited {
color: #333333;
}
a:hover {
color: #333333;
}
a:active {
color: #333333;
}
.headline {font-size: 16px}
.subhead {font-size: 12px}
.footer {color:#CCCCCC}
</style></head>
<body>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<span class="subhead">Treffen 2006</span><br></td>
</tr>
<tr><td bgcolor="#333333" height="15"> </td></tr>
<cfoutput query="dates">
<tr>
<td valign="top"><br>
<span class="headline">#titel#</span><br>
<cfif bis neq ""><span class="subhead">#tag#. - #bis#.#monat#.#jahr#</span><br>
<cfelse><span class="subhead">#tag#.#monat#.#jahr#</span><br></cfif>
#description#<br>
#club#<br><br>
<cfif url neq ""><a href="#url#" target="_blank">#url#</a></cfif><br><br><p></p>
</td>
</tr>
<tr><td bgcolor="##333333" height="15"> </td></tr>
</cfoutput>
<tr>
<td height="15" bgcolor="#666666"><span class="footer">Created by Cold Fusion at <cfoutput>#dateFormat(now(),"dd.mmmm.yyyy")#</span></cfoutput></td>
</tr>
</table>
</body>
</html>
</cfsavecontent>
<cffile action="write" file="absoluter\pfad\pdf\template.htm" output="#pdftemp#" nameconflict="overwrite">
<cfparam name="url.target_url" default="http://localhost/pdf/template.htm">
<cfoutput>
<cfhttp url="#url.target_url#" resolveurl="yes">
<cfdocument format="PDF" filename="absoluter\pfad\pdf\termine.pdf" fontembed="yes" name="pdfmaker" overwrite="yes" marginleft="0" marginbottom="0" marginright="0" margintop="0">
#cfhttp.filecontent#
</cfdocument>
</cfoutput>
<cfset result ="PDF">
<cfreturn result />
</cffunction>
Wäre super wenn mir jemand sagen kann, warum ich keine Umlaute bekomme.