<?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>Guy Rutenberg &#187; PHP</title>
	<atom:link href="http://www.guyrutenberg.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guyrutenberg.com</link>
	<description>Keeping track of what I do</description>
	<lastBuildDate>Sat, 21 Aug 2010 11:44:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Question Marks Instead of Non-ASCII Chars when using Gettext in PHP</title>
		<link>http://www.guyrutenberg.com/2008/11/24/question-marks-instead-of-non-ascii-chars-when-using-gettext-in-php/</link>
		<comments>http://www.guyrutenberg.com/2008/11/24/question-marks-instead-of-non-ascii-chars-when-using-gettext-in-php/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 14:54:02 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Gettext]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=173</guid>
		<description><![CDATA[Yesterday I&#8217;ve ported a PHP website to use Gettext for localizations (l10n). After reading through the Gettext documentation and going through the documentation in the PHP site, I&#8217;ve manged to get everything working (almost). I had one problem, all the non-ASCII characters (accented Latin chars, Japanese and Chinese) where displayed as question marks (?) instead [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I&#8217;ve ported a PHP website to use <a href="http://www.gnu.org/software/gettext/">Gettext</a> for localizations (l10n). After reading through the Gettext documentation and going through the documentation in the <a href="http://www.php.net">PHP site</a>, I&#8217;ve manged to get everything working (almost). I had one problem, all the non-ASCII characters (accented Latin chars, Japanese and Chinese) where displayed as question marks (?) instead of the correct form. This happend despite me using UTF-8 encoded files.</p>
<p>While some people (e.g. <a href="http://www.php.net/manual/en/function.gettext.php#56314">this one</a>) suggested that it&#8217;s not possible to use non-ASCII characters when using a UTF-8 encoded message files, their is a soultion and it&#8217;s quiet simple one. All you have to do is to call <a href="http://www.php.net/manual/en/function.bind-textdomain-codeset.php"><code>bind_textdomain_codset</code></a> and pass it <code>UTF-8</code> as <code>charset</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2008/11/24/question-marks-instead-of-non-ascii-chars-when-using-gettext-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.412 seconds -->
