<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AcletOdomv</id>
	<title>Microformats Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AcletOdomv"/>
	<link rel="alternate" type="text/html" href="https://microformats.org/wiki/Special:Contributions/AcletOdomv"/>
	<updated>2026-04-16T14:49:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=using-utf-8&amp;diff=35586</id>
		<title>using-utf-8</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=using-utf-8&amp;diff=35586"/>
		<updated>2008-12-19T14:03:05Z</updated>

		<summary type="html">&lt;p&gt;AcletOdomv: celtsitvidar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;trerbocna&lt;br /&gt;
= Using UTF-8 =&lt;br /&gt;
&lt;br /&gt;
Many folks using and authoring microformats have found that consistent use of UTF-8 in the toolchain helps ensure that microformatted international content (i.e. with non-ASCII7 characters) is preserved from publication to indexing to aggregation and addition to desktop applicaions.  (You could say I personally have some incentive to get this to all work properly, or rather, that I end up being a good test case ;) [http://tantek.com/log/ Tantek Ãelik]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Tips ==&lt;br /&gt;
&lt;br /&gt;
=== HTML ===&lt;br /&gt;
&lt;br /&gt;
* Use [http://validator.w3.org/ valid] (X)HTML.  Preferably XHTML 1.0 Strict.&lt;br /&gt;
* Specify the character-set explicitly as UTF-8, e.g. with &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
e.g. here is a complete valid XHTML 1.0 Strict UTF-8 document&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
         &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;head&amp;gt;&lt;br /&gt;
     &amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
     &amp;lt;title&amp;gt;Valid XHTML 1.0 UTF-8 document&amp;lt;/title&amp;gt;&lt;br /&gt;
 &amp;lt;/head&amp;gt;&lt;br /&gt;
 &amp;lt;body&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/body&amp;gt;&lt;br /&gt;
 &amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sidenote: this (meta http-equiv) is perhaps the *only* meta tag worth using in an (X)HTML document.&lt;br /&gt;
&lt;br /&gt;
* AVOID the &amp;lt;code&amp;gt;?xml&amp;lt;/code&amp;gt; prolog for sending the page as XHTML or XML.&lt;br /&gt;
** It is undesirable because it causes IE6/Windows to go into quirks mode.&lt;br /&gt;
** It is also [http://tantek.com/XHTML/Test/minimal.html#variants unecessary]&lt;br /&gt;
** Thus delete this if you see it at the top of your document:  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Web Server ===&lt;br /&gt;
&lt;br /&gt;
Make sure that you have configured the web server to also send the character set as UTF-8 for HTML documents.  E.g. for Apache, you can put this in your .htaccess file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
 AddType 'text/html; charset=UTF-8' .html&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Middleware ===&lt;br /&gt;
* Make sure that your middleware languages, tools, and frameworks (i.e. PHP, Python, Perl, XSLT, Tidy) are all using UTF-8 aware string handling functions.&lt;br /&gt;
&lt;br /&gt;
=== Database ===&lt;br /&gt;
* Use UTF-8 string fields in your databases.&lt;br /&gt;
* Configure your database accordingly&lt;br /&gt;
** For Postgres, use:  &amp;lt;code&amp;gt;client_encoding = &amp;quot;UTF-8&amp;quot;&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>AcletOdomv</name></author>
	</entry>
</feed>