<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: UTF-8 Model</title>
	<atom:link href="http://cakebakery.de/2006/08/24/utf-8-model/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebakery.de/2006/08/24/utf-8-model/</link>
	<description>Rezepte für die Entwicklung mit CakePHP</description>
	<lastBuildDate>Thu, 23 Jul 2009 05:07:33 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Von: Andreas</title>
		<link>http://cakebakery.de/2006/08/24/utf-8-model/comment-page-1/#comment-53</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 08 Sep 2006 09:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://cakebakery.de/2006/08/24/utf-8-model/#comment-53</guid>
		<description>Die mehrfache Ausf&#252;hrung der SET NAMES Abfrage kann auch durch eine statische Variable im AppModel verhindert werden. Ich hab das hier[1] mal dargestellt.

http://andreas-waidelich.de/weblog/view/248

Gru&#223;, Andreas</description>
		<content:encoded><![CDATA[<p>Die mehrfache Ausf&#252;hrung der SET NAMES Abfrage kann auch durch eine statische Variable im AppModel verhindert werden. Ich hab das hier[1] mal dargestellt.</p>
<p><a href="http://andreas-waidelich.de/weblog/view/248" rel="nofollow"></a><a href='http://andreas-waidelich.de/weblog/view/248'>http://andreas-waidelich.de/weblog/view/248</a></p>
<p>Gru&#223;, Andreas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Lars Strojny</title>
		<link>http://cakebakery.de/2006/08/24/utf-8-model/comment-page-1/#comment-51</link>
		<dc:creator>Lars Strojny</dc:creator>
		<pubDate>Thu, 07 Sep 2006 14:40:59 +0000</pubDate>
		<guid isPermaLink="false">http://cakebakery.de/2006/08/24/utf-8-model/#comment-51</guid>
		<description>Ein Problem gibt es noch mit den View-Helpern. Sobald dort htmlentities() oder htmlspecialchars() verwendet wird, wird leider kein Charset &#252;bergeben. Das Problem ist, dass PHP sich bei diesen Funktionen in keinster Weise um die INI-Direktive default_charset k&#252;mmert, sondern ausschlie&#223;lich auf den Parameter h&#246;rt. Somit bleibt einem hier nichts anderes &#252;brig, als hier Cake zu patchen und alle Stellen in den View-Helpern, in denen htmlentities() zum Einsatz kommt, mit htmlentities( $string, null, &quot;UTF-8&quot; ) bzw. dem Pendant f&#252;r htmlspeciachars() zu ersetzen.</description>
		<content:encoded><![CDATA[<p>Ein Problem gibt es noch mit den View-Helpern. Sobald dort htmlentities() oder htmlspecialchars() verwendet wird, wird leider kein Charset &#252;bergeben. Das Problem ist, dass PHP sich bei diesen Funktionen in keinster Weise um die INI-Direktive default_charset k&#252;mmert, sondern ausschlie&#223;lich auf den Parameter h&#246;rt. Somit bleibt einem hier nichts anderes &#252;brig, als hier Cake zu patchen und alle Stellen in den View-Helpern, in denen htmlentities() zum Einsatz kommt, mit htmlentities( $string, null, &#8220;UTF-8&#8243; ) bzw. dem Pendant f&#252;r htmlspeciachars() zu ersetzen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Reen</title>
		<link>http://cakebakery.de/2006/08/24/utf-8-model/comment-page-1/#comment-30</link>
		<dc:creator>Reen</dc:creator>
		<pubDate>Fri, 25 Aug 2006 07:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://cakebakery.de/2006/08/24/utf-8-model/#comment-30</guid>
		<description>Ich hab das ganze &#228;hnlich gel&#246;st, nur dass ich eine
Konstante gesetzt habe die verhindert dass es mehr als einmal ausgef&#252;hrt wird:

if(!defined(&#039;MODEL_UTF8&#039;)) {
    $this-&gt;execute( &quot;SET NAMES &#039;UTF8&#039;&quot; );
define(&#039;MODEL_UTF8&#039;);
}</description>
		<content:encoded><![CDATA[<p>Ich hab das ganze &#228;hnlich gel&#246;st, nur dass ich eine<br />
Konstante gesetzt habe die verhindert dass es mehr als einmal ausgef&#252;hrt wird:</p>
<p>if(!defined(&#8217;MODEL_UTF8&#8242;)) {<br />
    $this-&gt;execute( &#8220;SET NAMES &#8216;UTF8&#8242;&#8221; );<br />
define(&#8217;MODEL_UTF8&#8242;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Daniel Hofstetter</title>
		<link>http://cakebakery.de/2006/08/24/utf-8-model/comment-page-1/#comment-29</link>
		<dc:creator>Daniel Hofstetter</dc:creator>
		<pubDate>Fri, 25 Aug 2006 06:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://cakebakery.de/2006/08/24/utf-8-model/#comment-29</guid>
		<description>Falls man einen eigenen Server betreibt, so kann auch 

[mysqld]
init-connect = &#039;SET NAMES utf8&#039;

zur Konfigurations-Datei /etc/mysql/my.cnf hinzufÃ¼gen.</description>
		<content:encoded><![CDATA[<p>Falls man einen eigenen Server betreibt, so kann auch </p>
<p>[mysqld]<br />
init-connect = &#8216;SET NAMES utf8&#8242;</p>
<p>zur Konfigurations-Datei /etc/mysql/my.cnf hinzufÃ¼gen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: dirk.olbertz</title>
		<link>http://cakebakery.de/2006/08/24/utf-8-model/comment-page-1/#comment-28</link>
		<dc:creator>dirk.olbertz</dc:creator>
		<pubDate>Thu, 24 Aug 2006 20:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://cakebakery.de/2006/08/24/utf-8-model/#comment-28</guid>
		<description>Etwas ung&#252;nstig dabei ist nur, dass dies dann f&#252;r jedes Model gemacht wird und man so teilweise f&#252;nf oder sechsmal pro Seitenaufruf das &quot;SET NAMES &#039;UTF8&#039;&quot; ausf&#252;hrt.

In Cake 1.2 wird es aber die M&#246;glichkeit geben, in der database.php die Codierung des Zeichensatzes mit zu &#252;bergeben, so dass dann obiger Trick &#252;berfl&#252;ssig wird.</description>
		<content:encoded><![CDATA[<p>Etwas ung&#252;nstig dabei ist nur, dass dies dann f&#252;r jedes Model gemacht wird und man so teilweise f&#252;nf oder sechsmal pro Seitenaufruf das &#8220;SET NAMES &#8216;UTF8&#8242;&#8221; ausf&#252;hrt.</p>
<p>In Cake 1.2 wird es aber die M&#246;glichkeit geben, in der database.php die Codierung des Zeichensatzes mit zu &#252;bergeben, so dass dann obiger Trick &#252;berfl&#252;ssig wird.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
