using-utf-8

From Microformats Wiki
Revision as of 02:07, 23 August 2007 by Xh9Yjx (talk | contribs)
Jump to navigation Jump to search

[sony hs95ps] [telefonini sony ericsson s700i] [il manifesto] [time bokan. le macchine del tempo] [giovane giovane] [quando muore una stella] [film grais] [majestic mp 851] [perfosfato] [moja hercegovina] [low profile] [archicad] [masterizzatore lg dvd] [winne the pooh] [acqua simac] [risultati esame avvocato napoli] [programmi media player] [max anderson] [photo sixy] [salvador nomadi] [vivavoce sbs] [p lion] [novita midi] [panasonic camcorder] [profumi the bianco] [rita, rita, rita] [cancelleria] [digitale (botanica)] [una chica normal gianluca grignani] [kulle, jarl] [dar lhe mais] [testo canzone marron 5 this love] [offerta televisori lcd] [portatili pentium xp m centrino double] [indirizzi trans] [bubble truble] [auto insurance] [powys, theodore francis] [jam boj] [peugeot roma] [fotos de los famosos] [graduatorie roma] [thomson - 23lb220s4] [piatti veloci] [progetto k] [idea regalo matrimonio] [actos 28 cpr 15 mg] [galsworthy, john] [riau] [bambola antiche porcellana] [stilo per pda] [scala pieghevole] [calciatori svincolati] [la primula rossa] [hotel a rimini per single] [il ruolo degli incubatori nella] [crema rassodante] [nec computer] [www hotel le pelagie it] [costantino il grande] [loops merengue] [shola ama you should really know] [frasi famose] [sito polizia penitenziaria] [www ovnis com] [i visitatori] [dedicato a te delle vibrazioni] [melodie imperiali] [eviva espana] [testina canon s400] [innova reggio calabria] [kuan dvd] [volvo v70 d5] [case 19] [asse da stiro scomparsa] [foto hard over] [plesiosaurus] [last minute bucarest] [kalinka mp3] [piccolo problema cuore] [www riesi com] [heaven s a lie] [istambul] [ipopotamo avventura] [itu] [tripodi] [wc e80 nikon] [barahona de soto, luis] [tvc plasma 42] [cristo nostra pace] [curare attacchi panico] [diagonale] [de tomaso] [calendario showgirl italiana] [ultrasonic flow meter] [indesit ra] [elisabetta canalis su maxim] [klaudia] [volkswagen golf gti 2 0] [mercedes ml 280] [cassa di previdenza ed assistenza geometri] [fiera di roma] [www necronomicon it] [il padrone] [sarum] [lettori portatili mp3 usb] [ipod offerta] [leave elm street] [sigma 105 105mm f 2 8 dg macro canon] [il vicino] [riparazione numeratori] [mina buonasera dottore] [foto annuncio incontro privato amatoriale] [processori intel pentium 4 630 3 0 ghz] [cryptoworks] [morai] [dri dri] [trucchi per playstation] [dvd dl cd e vergini] [gay inculati] [pino campagna] [brani siciliani] [pompa centrifuga] [geoffrey chaucer] [casio xj-360] [pinnacle analogico] [roma non fa la stupida sta sera] [cerchio] [hub di rete ethernet] [limit 21] [digicom gprs card] [tecupae] [coppia lui bsx] [monfort, sylvia] [zafira ecom] [trailer di troy] [www sexxxxx com my] [treat yo mama] [variati spa] [in ostaggio] [batucadas] [frou frou holding out for a hero] [agenzia immobiliare livorno] [bandi] [i ragazzi dell olivo] [lovin you] [sugarbabes] [usb cavo lg] [monitor dvi 17] [jeep cherokee sicilia] [z601 stampanti] [shop] [www alessandra e costantino it] [liner] [vibro] [racconti vacanze cuckhold] [facolta lettere e filosofia palermo] [cancello auschwitz] [tatuaggi di drago] [magic swap] [gina lee nolin video] [www imposte registro it] [hotel 4 stelle genova] [kate moss video] [strauss marcia] [san goivanni rotondo] [manuela morabito] [scarpa camper] [copertine cd musicale di joss stone] [per elisa] [sinfonie] [hard disk 30gb] [stampe a colori] [la grande rapina] [una chica normal gianluca grigniani] [rain down] [zombie t] [astarte srl] [cortez murder] [prima immagine di harvest moon su nintendo ds] [r440 force feedback wheel] [cavo usb optio s pentax] [hdd esterno 200gb] [lost telefilm] [roxanne hill] [it s logic] [ongbak] [java com] [presentes] [borsa lavoro] [to party] [orelle sa 100] [this love videoi] [videocamere sony dcr hc17] [for whom the bell tolls by papa ernie di] [ferrari 348 tb] [lubrano] [jbuilder 2005 enterprise] [mouse e tastiera] [bmw serie 5 95] = Using UTF-8 =

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 ;) Tantek Çelik

Tips

HTML

  • Use valid (X)HTML. Preferably XHTML 1.0 Strict.
  • Specify the character-set explicitly as UTF-8, e.g. with
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

e.g. here is a complete valid XHTML 1.0 Strict UTF-8 document

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <title>Valid XHTML 1.0 UTF-8 document</title>
 </head>
 <body>
 
 </body>
 </html>

Sidenote: this (meta http-equiv) is perhaps the *only* meta tag worth using in an (X)HTML document.

  • AVOID the ?xml prolog for sending the page as XHTML or XML.
    • It is undesirable because it causes IE6/Windows to go into quirks mode.
    • It is also unecessary
    • Thus delete this if you see it at the top of your document: <?xml version="1.0" encoding="UTF-8"?>

Web Server

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:

 AddType 'text/html; charset=UTF-8' .html

Middleware

  • 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.

Database

  • Use UTF-8 string fields in your databases.
  • Configure your database accordingly
    • For Postgres, use: client_encoding = "UTF-8"