Re: documentation files without xml-tag
| From: | Hartmut Holzgraefe | Date: | Fri, 24 Oct 2003 12:01:37 +0000 |
| Subject: | Re: documentation files without xml-tag | ||
| References: | 1 2 3 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-1739@lists.php.net to get a copy of this message | ||
Dennis Sterzenbach wrote:
Well, I'm not too familiar with unicode. So, just to assure I got it right: I should add <?xml version="1.0" encoding="UTF-8" ?> as the xml-tag line to my translated files.no, utf-8 is the default for XML only if you use a *different* encoding you have to specify it in the XML header
But one question about the german umlauts still remains in my head. Are these translated correctly during a build process, only if the UTF-8 got specified?no translation takes place, you just specify in the header what the encoding is in the content below
For the moment I only know, there has to be a german locale being set for to correctly reform from xml into the html.it is most likely that you produce documents that are ISO-8859-1 (aka. Latin-1) encoded, this is the default charset encoding for both Unix and Windows (but not DOS) if umlauts are encoded as single characters (with character codes above 127) in your document source than it is ISO-8859-1 (or ISO-8859-15 if you need the Euro sign), if they are encoded as multibyte sequences than it is most likely that they are encoded as UTF 8 this all depends on the editor and editor settings you use, if you use some sort of XML editor it may be that it writes UTF-8, but if you use a text or code editor it is most likely that you end up with IS0-8859-1 encoded source
Or is the manual defined with content-type meta telling charset=UTF-8, so no conversion will be done?once again: the default for XML is *always* UTF-8 unless you specify something different for convenience reasons you should use and specify whatever encoding suits you best in case of german text this is definetly iso-8859-1 for eastern europe it is iso-8859-2 AFAIR for the english originals it doesn't really matter as these only use characters from the lower ASCII range that all the UTF-* and iso-8859-* encodings have in common -- Hartmut Holzgraefe <hartmut@php.net>