<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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"
		>
	<channel>
		<title>WordPress Ideas &#187; Topic: allow for specifying charset=&quot;utf-8&quot; on enqueued scripts</title>
		<link>http://wordpress.org/ideas/topic/allow-for-specifying-charsetutf-8-on-enqueued-scripts</link>
		<description>WordPress Ideas &#187; Topic: allow for specifying charset=&quot;utf-8&quot; on enqueued scripts</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 09:45:08 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/ideas/rss/topic/allow-for-specifying-charsetutf-8-on-enqueued-scripts" rel="self" type="application/rss+xml" />

		<item>
			<title>webaware on "allow for specifying charset=&quot;utf-8&quot; on enqueued scripts"</title>
			<link>http://wordpress.org/ideas/topic/allow-for-specifying-charsetutf-8-on-enqueued-scripts#post-24294</link>
			<pubDate>Mon, 04 Mar 2013 02:32:01 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">24294@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Update: for anyone who needs this, there's a dirty hack from @toscho on the WordPress Stackexchange:</p>
<p><a href="http://wordpress.stackexchange.com/a/38335/24260" rel="nofollow">http://wordpress.stackexchange.com/a/38335/24260</a></p>
<pre><code>add_filter(&#039;clean_url&#039;, &#039;wpse_38319_filterCleanURL&#039;, 11);

/**
* hack: add charset=&#039;utf-8&#039; to i18n scripts
* @param string $url
* @return string
*/
function wpse_38319_filterCleanURL($url) {
    if (stripos($url, plugins_url(&#039;i18n/&#039;, __FILE__) !== false) {
        return &#34;$url&#039; charset=&#039;utf-8&#34;;
    }
    return $url;
}</code></pre>]]></description>
					</item>
		<item>
			<title>webaware on "allow for specifying charset=&quot;utf-8&quot; on enqueued scripts"</title>
			<link>http://wordpress.org/ideas/topic/allow-for-specifying-charsetutf-8-on-enqueued-scripts#post-23830</link>
			<pubDate>Mon, 10 Dec 2012 23:55:46 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">23830@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>There is currently no way to specify that an enqueued script should have a charset attribute. Where a script includes non-ASCII characters, it should specify its character encoding so that the browser correctly interprets those characters. Web servers can be configured to send the appropriate character encoding in the header, but plugins cannot rely on users and their hosts doing this.</p>
<p>I note that there is another idea under consideration for <a href="http://wordpress.org/extend/ideas/topic/non-blocking-asynchronous-wp_enqueue_script">adding support for the async tag</a>. If custom attributes on script tags were supported via an array of optional attributes, it would accommodate both these ideas.</p>
<p>Alternatively, a filter in WP_Scripts::do_item() where it creates the script tag would suffice.
</p>]]></description>
					</item>

	</channel>
</rss>
