<?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>Doga Berntas &#187; Turkish</title>
	<atom:link href="http://doganberktas.com/tag/turkish/feed/" rel="self" type="application/rss+xml" />
	<link>http://doganberktas.com</link>
	<description>is actually from a small planet somewhere in the vicinity of Betelgeuse</description>
	<lastBuildDate>Sat, 21 Apr 2012 21:48:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Converting a Mysql table into a &#8220;proper&#8221;  Turkish XML file</title>
		<link>http://doganberktas.com/2009/09/03/converting-a-mysql-table-into-a-proper-turkish-xml-file/</link>
		<comments>http://doganberktas.com/2009/09/03/converting-a-mysql-table-into-a-proper-turkish-xml-file/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 14:38:49 +0000</pubDate>
		<dc:creator>dkberktas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[character encoding]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Turkish]]></category>

		<guid isPermaLink="false">http://doganberktas.com/?p=17</guid>
		<description><![CDATA[Character sets, encoding, decoding, anything related to non-English characters make me feel uncomfortable, since at each time I have problem related to these things, I spend hours just to see a proper Turkish character like &#8220;ç&#8221;. This was again the case with an old mysql table with encoding utf8_general_ci. Before there was UTF-16 then UTF-8 [...]]]></description>
			<content:encoded><![CDATA[<p>Character sets, encoding, decoding, anything related to non-English characters make me feel uncomfortable, since at each time I have problem related to these things, I spend hours just to see a proper Turkish character like &#8220;ç&#8221;.</p>
<div class="wp-caption aligncenter" style="width: 250px"><a title="The Hidden Buddhist Temple of Borobudur at Sunrise" href="http://flickr.com/photos/95572727@N00/2336220351"><img src="http://farm3.static.flickr.com/2242/2336220351_825a1b92d3_m.jpg" alt="" width="240" height="136" /></a><p class="wp-caption-text">tagaroo suggests this image is appropriate for the post </p></div>
<p>This was again the case with an old mysql table with encoding <strong>utf8_general_ci</strong>. Before there was UTF-16 then UTF-8 now I have deal with the subleties of utf8_general_ci (which is in fact has other types like utf8_unicode_ci).</p>
<p>Anyway, after spending hours just to see the correct characters in the console, very near to the point I gave up, I found a <a href="http://www.r10.net/php/193407-str_replace-kodlari-lazim-utf-8-icin-ornek-a-o.html">link</a> that suggest to just replace the unwanted characters like &#8220;Ã§&#8221; to ç. here is the complete list that I use in Java,  but be careful about the order you replaced:</p>
<p><code>textVal = textVal.replace("ÄŸ","&#287;");<br />
textVal = textVal.replace("Ä±","&#305;");<br />
textVal = textVal.replace("Ä°","&#304;");<br />
textVal = textVal.replace("Ä","&#286;");</code></p>
<p><code>textVal = textVal.replace("Ü","Ü");<br />
textVal = textVal.replace("Ã¼","ü");<br />
textVal = textVal.replace("Ã‡","Ç");<br />
textVal = textVal.replace("Ã§","ç");<br />
textVal = textVal.replace("Ã–","Ö");<br />
textVal = textVal.replace("Ã¶","ö");<br />
textVal = textVal.replace("ÅŸ","&#351;");<br />
textVal = textVal.replace("Å","&#350;");</code></p>
<p>Yeap, that solved my problem, thanks to you guys at the forum. But, I still doesn&#8217;t understand why we still need to have that number of encoding!</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 316px; width: 1px; height: 1px;">&amp;#350;</div>
]]></content:encoded>
			<wfw:commentRss>http://doganberktas.com/2009/09/03/converting-a-mysql-table-into-a-proper-turkish-xml-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

