OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: Fwd: [xml-dev] Quiz: How do you put a Euro sign in your data if your XML uses windows-1252 encoding and you use a numeric character reference?

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"/>



"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

Toby Considine
TC9, Inc

OASIS TC Chair: oBIX & WS-Calendar

OASIS TC Editor: EMIX, Energy Interoperation

SGIP Smart Grid Architecture Committee


Email: Toby.Considine@gmail.com
Phone: (919)619-2104

blog: http://www.NewDaedalus.com





-----Original Message-----
From: Liam R E Quin [mailto:liam@w3.org]
Sent: Friday, March 01, 2013 9:36 AM
To: Timothy W. Cook
Cc: xml-dev@lists.xml.org"
Subject: Re: Fwd: [xml-dev] Quiz: How do you put a Euro sign in your data if your XML uses windows-1252 encoding and you use a numeric character reference?


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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS