This may be the wrong question. If you are trying to disambiguate currency, rather than print the symbol, you may wish to reference the UN/CEFACT XML artifacts on currency. UN/CEFACT (Centre for Trade Facilitation and Electronic Business) promulgates EDI standards for electronic trade documents in XML format. They keep a standard list of currency codes for use in XML. They host a referenceable XSD that grants free access to the ISO 4217 standard <xs:import namespace="urn:un:unece:uncefact:codelist:standard:5:ISO42173A:2010-04-07" schemaLocation="http://www.unece.org/uncefact/codelist/standard/ISO_ISO3AlphaCurrencyCode_20100407.xsd"/> tc "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan
-----Original Message----- On Fri, 2013-03-01 at 10:55 -0300, Timothy W. Cook wrote: > On Fri, Mar 1, 2013 at 9:49 AM, Michael Sokolov > <msokolov@safaribooksonline.com> wrote: > > > The advice I always give is: use (and demand) UTF-8 everywhere and > > anywhere that you can. Don't use named entities ever (actually this > > has nothing to do with character sets, but it's still my position :)). > > I tend to agree with this, Michael. > > My questions is; Is there a use case or any good reason to use > anything but UTF-8? If you're in a non-UTF-8 environment then using the native encoding locally can let you use other tools - e.g. text editors - on your data. For Japanese or Chinese or Korean text, for example, UTF-16 is more common, because it's more compact. On an IBM mainframe you might prefer to work with one of the EBCDIC derivatives. As for named entities, there are circumstances where they are a very good fit - e.g. &productname; in a manual - although it's generally wise to expand them before shipping the XML to an external organization. Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml _______________________________________________________________________ XML-DEV is a publicly archived, unmoderated list hosted by OASIS to support XML implementation and development. To minimize spam in the archives, you must subscribe before posting. [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ Or unsubscribe: xml-dev-unsubscribe@lists.xml.org subscribe: xml-dev-subscribe@lists.xml.org List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php |