<?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/2005/12/05/utf8-in-javascript-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://verens.com/2005/12/05/utf8-in-javascript-php-and-mysql/</link>
	<description>klog - Kae&#039;s Log</description>
	<lastBuildDate>Mon, 21 May 2012 21:11:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Hesam</title>
		<link>http://verens.com/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-572</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-572</guid>
		<description>my ajax code send my utf-8 characters to my page something like: ???????

it can&#039;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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-571</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-571</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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-570</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-570</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 &#8211; 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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-569</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-569</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&#039;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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-568</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-568</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&#039;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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-567</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-567</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):

  AddCharset utf-8 .js


Then, you can write the utf-8 text directly into the file (I think ;-) )</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>
<p>  AddCharset utf-8 .js</p>
<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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-566</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-566</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&#039;m currently trying to &quot;internationalise&quot; a calendar script and have had no problems loading external JavaScript files containing &#039;raw&#039; accented characters e.g.

The external script can contain the following (notice the raw &quot;Ã»&quot; character):

var somerawstring= &quot;AoÃ»t&quot;;

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&#039;m wrong (I hope not as I&#039;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/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-565</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-565</guid>
		<description>hey, vinnie - what&#039;s your email address? mail me - kae@verens.com</description>
		<content:encoded><![CDATA[<p>hey, vinnie &#8211; what&#8217;s your email address? mail me &#8211; <a href="mailto:kae@verens.com">kae@verens.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Babarino</title>
		<link>http://verens.com/2005/12/05/utf8-in-javascript-php-and-mysql/#comment-564</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-564</guid>
		<description>I&#039;ll have less of this encoded mystery meat navigation. Where&#039;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&#039;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>

