<?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>Comments on: utf8 in javascript, php, and mysql</title>
	<atom:link href="http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/</link>
	<description>php, linux, ajax, javascript, kae verens</description>
	<pubDate>Tue, 06 Jan 2009 04:33:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hesam</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-84797</link>
		<dc:creator>Hesam</dc:creator>
		<pubDate>Sat, 23 Feb 2008 18:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-84797</guid>
		<description>my ajax code send my utf-8 characters to my page something like: ???????

it can't show those characters, I think the problem is somewhere here: document.getElementByIddocument.getElementById

I am just confused with it. anybody has the solution for using ajax and php to read utf-8 characters from mysql.

please email me the result: hesame[@]gmail.com</description>
		<content:encoded><![CDATA[<p>my ajax code send my utf-8 characters to my page something like: ???????</p>
<p>it can&#8217;t show those characters, I think the problem is somewhere here: document.getElementByIddocument.getElementById</p>
<p>I am just confused with it. anybody has the solution for using ajax and php to read utf-8 characters from mysql.</p>
<p>please email me the result: hesame[@]gmail.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hebiryu</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-26591</link>
		<dc:creator>hebiryu</dc:creator>
		<pubDate>Wed, 18 Oct 2006 12:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-26591</guid>
		<description>cool man.. your utf-8 tips work very well</description>
		<content:encoded><![CDATA[<p>cool man.. your utf-8 tips work very well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-25803</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Fri, 13 Oct 2006 14:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-25803</guid>
		<description>Florian, maybe your site has .htaccess scripts disabled? You can find out by loading the JavaScript up in Firefox - right click and View Page Info. It will tell you what character set the script is in.</description>
		<content:encoded><![CDATA[<p>Florian, maybe your site has .htaccess scripts disabled? You can find out by loading the JavaScript up in Firefox - right click and View Page Info. It will tell you what character set the script is in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-25800</link>
		<dc:creator>Florian</dc:creator>
		<pubDate>Fri, 13 Oct 2006 14:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-25800</guid>
		<description>Hi,

i have also a calendar script which is included into a utf-8 page. Here i have the same troubles that special characters are shown wrong. I tried to put a .htaccess into the folder but without success. What else could i do to solve this problem? 
And when i receive data from my database and place it on the page, it's working fine, but when  i open a popup and add all the parameters via the url, I also get wrong characters... Any idea, what I could do?

thanks
Florian</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i have also a calendar script which is included into a utf-8 page. Here i have the same troubles that special characters are shown wrong. I tried to put a .htaccess into the folder but without success. What else could i do to solve this problem?<br />
And when i receive data from my database and place it on the page, it&#8217;s working fine, but when  i open a popup and add all the parameters via the url, I also get wrong characters&#8230; Any idea, what I could do?</p>
<p>thanks<br />
Florian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian McAllister</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-3109</link>
		<dc:creator>Brian McAllister</dc:creator>
		<pubDate>Thu, 16 Feb 2006 16:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-3109</guid>
		<description>wow, thats a fast response my man...

I just came back to say the same thing. It appears that the HTTP headers have to state a utf-8 charset (which Apache installations do by default I'm lead to believe).

Thanks for the response,

Take care,
Brian</description>
		<content:encoded><![CDATA[<p>wow, thats a fast response my man&#8230;</p>
<p>I just came back to say the same thing. It appears that the HTTP headers have to state a utf-8 charset (which Apache installations do by default I&#8217;m lead to believe).</p>
<p>Thanks for the response,</p>
<p>Take care,<br />
Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-3108</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Thu, 16 Feb 2006 15:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-3108</guid>
		<description>Brian, I think the answer is that browsers do support UTF8 scripts, as long as the header for the .js file specifies that the content is UTF8, and not, for example, 8859-1.

If you already have a load of code written, then a quick solution may be to add a &lt;code&gt;.htaccess&lt;/code&gt; file to the directory your JavaScript, with the following in it (not tested):
&lt;pre class="conf"&gt;
  AddCharset utf-8 .js
&lt;/pre&gt;

Then, you can write the utf-8 text directly into the file (I think ;-) )
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Brian, I think the answer is that browsers do support UTF8 scripts, as long as the header for the .js file specifies that the content is UTF8, and not, for example, 8859-1.</p>
<p>If you already have a load of code written, then a quick solution may be to add a <code>.htaccess</code> file to the directory your JavaScript, with the following in it (not tested):</p>
<pre class="conf">
  AddCharset utf-8 .js
</pre>
<p>Then, you can write the utf-8 text directly into the file (I think <img src='http://verens.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian McAllister</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-3106</link>
		<dc:creator>Brian McAllister</dc:creator>
		<pubDate>Thu, 16 Feb 2006 14:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-3106</guid>
		<description>Hi Kae,

Are you sure that external JavaScript files have to be sent as ASCII (I realise the ECMA pdf document you linked to says so)?

I'm currently trying to "internationalise" a calendar script and have had no problems loading external JavaScript files containing 'raw' accented characters e.g.

The external script can contain the following (notice the raw "Ã»" character):

var somerawstring= "AoÃ»t";

and the variable somerawstring can be used as-is (i.e. without resorting to the UTF8 encoding) e.g.

someDivReference.appendChild(document.createTextNode(somerawstring));

Perhaps I'm wrong (I hope not as I'll have to change a ton of code)...

Regards,
Brian</description>
		<content:encoded><![CDATA[<p>Hi Kae,</p>
<p>Are you sure that external JavaScript files have to be sent as ASCII (I realise the ECMA pdf document you linked to says so)?</p>
<p>I&#8217;m currently trying to &#8220;internationalise&#8221; a calendar script and have had no problems loading external JavaScript files containing &#8216;raw&#8217; accented characters e.g.</p>
<p>The external script can contain the following (notice the raw &#8220;Ã»&#8221; character):</p>
<p>var somerawstring= &#8220;AoÃ»t&#8221;;</p>
<p>and the variable somerawstring can be used as-is (i.e. without resorting to the UTF8 encoding) e.g.</p>
<p>someDivReference.appendChild(document.createTextNode(somerawstring));</p>
<p>Perhaps I&#8217;m wrong (I hope not as I&#8217;ll have to change a ton of code)&#8230;</p>
<p>Regards,<br />
Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-2926</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Sat, 10 Dec 2005 17:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-2926</guid>
		<description>hey, vinnie - what's your email address? mail me - kae@verens.com</description>
		<content:encoded><![CDATA[<p>hey, vinnie - what&#8217;s your email address? mail me - <a href="mailto:kae@verens.com">kae@verens.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Babarino</title>
		<link>http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/comment-page-1/#comment-2925</link>
		<dc:creator>Babarino</dc:creator>
		<pubDate>Sat, 10 Dec 2005 00:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-2925</guid>
		<description>I'll have less of this encoded mystery meat navigation. Where's the contact form?

Looking to hook up with yiz. May even drop by today Saturday the  10th. Should it not suit let me know. We're in Monaghan this pm.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll have less of this encoded mystery meat navigation. Where&#8217;s the contact form?</p>
<p>Looking to hook up with yiz. May even drop by today Saturday the  10th. Should it not suit let me know. We&#8217;re in Monaghan this pm.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
