- From: Laurent Carcone <carcone@w3.org>
- Date: Wed, 20 Jan 2010 14:16:37 +0100
- To: "amaya-doc@s-g-b-online.de" <amaya-doc@s-g-b-online.de>
- CC: www-amaya@w3.org
amaya-doc@s-g-b-online.de wrote: > Hi Bill, > > many background information you find in Article "Setting encoding in > web authoring applications" > <http://www.w3.org/International/questions/qa-setting-encoding-in-applications>. > > "... > W3C Amaya (Mac, Unix, Windows) > When saving the file, go to File > Save as. Amaya will make sure that > the encoding is correct in the XML declaration (for XHTML) and the > meta statement. Amaya also uses the appropriate encoding (charset) in > the HTTP headers when it saves a document remotely using PUT. Amaya > also understands several other encodings when loading a document, but > is not able to save in any of these. Just to be clear, if you "Save As" a document in Amaya and change the 'Charset' information, Amaya not only change the xml declaration and the meta tag but encode all the characters accordingly. Thanks, Laurent Carcone > ..." > > For more information in article "Changing (X)HTML page encoding to > UTF-8" > <http://www.w3.org/International/questions/qa-changing-encoding.en.php?changelang=en> > > Hope I could help you. > > In this way "Thanks" for these (and other) article to Phil Arko and > Richard Ishida > > Greetings, Jörg > > Bill Braun schrieb: >> Dominique Meeùs wrote: >>> There are two related problems to be considered separately. >>> 1. You have to choose a "physical" encoding: the different >>> characters have to be inscribed on the digital medium as a definite >>> succession of bits, forming bytes, like utf-8 or iso-suchandsuch… >>> This is usually obtained by an option under File/Save as… or another >>> appropriate command >>> 2. Most languages, protocols… ask you to declare the encoding so >>> chosen. This is some doctype or charset="" declaration. >>> >>> Needless to say that 1 and 2 have to be in accordance. Declaring >>> utf-8 while you actually saved your document as Windows-1252 or some >>> other encoding of the middle ages is worse than declaring nothing. >>> Most software with a command to insert a declaration about encoding >>> do just this: declare, and only this. They do not convert the >>> "physical" encoding into another. (One exception: in Bluefish the >>> command Document/Encoding converts the encoding and inserts/corrects >>> the declaration if the encoding changes.) >>> In conclusion, you have to mind 1 AND 2 accordingly. >> I am suspicious, but do not know for sure, that I have indeed garbled >> these two together. Can I impose upon you to offer some specific >> steps in Amaya that would resolve mismatches that I might have committed? >> >> This passes W# validation with no warning: >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>> >> <html xmlns="http://www.w3.org/1999/xhtml" <http://www.w3.org/1999/xhtml>> >> <head> >> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> >> </head> >> >> This passes with a warning (as noted above): >> >> <?xml version="1.0" encoding="iso-8859-1"?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>> >> <html xmlns="http://www.w3.org/1999/xhtml" >> <http://www.w3.org/1999/xhtml>> >> <head> >> <meta http-equiv="content-type" content="text/html; /> >> </head> >> >> I'm aware I might just be taking another lap around the circle. As >> admitted earlier, I am out of my league here, so a step-by-step >> concrete reply would be appreciated. >> >> Is it as simple as setting the encoding and charset to "UTF-8" and be >> done with it? >> >> Regards and thank you, >> >> Bill B >>
Received on Wednesday, 20 January 2010 13:17:12 UTC