<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Byumut &#187; encoding</title>
	<atom:link href="http://www.byumut.com/tag/encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.byumut.com</link>
	<description>&#34; En büyük risk, risk almamaktır.... &#34;</description>
	<lastBuildDate>Thu, 09 Feb 2012 22:12:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Php ile UTF-8 Karekter Setinde Dosya Yazmak</title>
		<link>http://www.byumut.com/php-ile-utf-8-karekter-setinde-dosya-yazmak/</link>
		<comments>http://www.byumut.com/php-ile-utf-8-karekter-setinde-dosya-yazmak/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:47:46 +0000</pubDate>
		<dc:creator>byumut</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[karekter set]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php file encoding]]></category>
		<category><![CDATA[php file encoding utf8]]></category>
		<category><![CDATA[UTF8]]></category>
		<category><![CDATA[write]]></category>
		<category><![CDATA[write UTF8 File]]></category>

		<guid isPermaLink="false">http://www.byumut.com/?p=494</guid>
		<description><![CDATA[Php ile kodlama yaparken en önemli sorunlarımızdan biriside değişik karekter setleriyle yapmış olduğumuz çalışmalarımız ve sonrasında bize yaşattığı o içinden çıkılmaz hallerdir. İşte daha yeni böyle bir sorunu bir sorunu mysql ' den veri okuyup bunu txt dosyası oluşturmaya çalıştığım zaman yaşadığım . mysql ' deki verilerin karekter seti utf-8 olduğu için txt dosyasının karekter [...]]]></description>
			<content:encoded><![CDATA[<p>Php ile kodlama yaparken en önemli sorunlarımızdan biriside değişik karekter setleriyle yapmış olduğumuz çalışmalarımız ve sonrasında bize yaşattığı o içinden çıkılmaz hallerdir. İşte daha yeni böyle bir sorunu bir sorunu mysql ' den veri okuyup bunu txt dosyası oluşturmaya çalıştığım zaman yaşadığım . mysql ' deki verilerin karekter seti utf-8 olduğu için txt dosyasının karekter setide utf-8 olmalıydı ki ben o verileri dosyaya yazdırdığımda sorun yaşamamalıydım . Küçük bir araştırma sonucunda <a href="http://www.php.net/">php.net</a> sitesinde bir örnekle karşılaştım örnek utf8 karekter setli bir txt dosyası oluşturabilme imkanı veriyor bize. <span id="more-494"></span></p>
<p><strong>Buyrun Örnek :</strong></p>
<div class="igBar"><span id="lphp-3"><a href="#" onclick="javascript:showPlainTxt('php-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> writeUTF8File<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$filename</span>,<span style="color:#0000FF;">$content</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$dhandle</span>=<a href="http://www.php.net/fopen"><span style="color:#000066;">fopen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$filename</span>,<span style="color:#FF0000;">"w"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000; font-style:italic;"># Now UTF-8 - Add byte order mark</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/fwrite"><span style="color:#000066;">fwrite</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dhandle</span>, <a href="http://www.php.net/pack"><span style="color:#000066;">pack</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"CCC"</span>,0xef,0xbb,0xbf<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/fwrite"><span style="color:#000066;">fwrite</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dhandle</span>,<span style="color:#0000FF;">$content</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/fclose"><span style="color:#000066;">fclose</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dhandle</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Dosya yazdırmalarımızda ek olarak fonksiyonlarımızın arasına şu kısmı eklememiz yetiyor yani : </p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showPlainTxt('php-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/fwrite"><span style="color:#000066;">fwrite</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$dhandle</span>, <a href="http://www.php.net/pack"><span style="color:#000066;">pack</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"CCC"</span>,0xef,0xbb,0xbf<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Kolay Gelsin.</p>

<p class="sayac_bilgi">31 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.byumut.com/php-ile-utf-8-karekter-setinde-dosya-yazmak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

