Results 1 to 9 of 9

Thread: XML Euro

  1. #1
    Star Lounger
    Join Date
    Feb 2001
    Location
    UK
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XML Euro

    I have an XML settings file for a VB app which contains a currency symbol

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: XML Euro

    I know nothing of XML but have a passing acquaintance with the euro symbol. You are entirely correct that it does not appear in ISO-8859-1. If you can embed Unicode characters into XML, the Unicode value for the euro sign is U+20AC .

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  3. #3
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: XML Euro

    Hi Lubo

    You can enter the Euro character as data in element content or attribute values using number character references in any XML document:

    & #x20AC; or decimal & #8364;


    This character is allowed both in XML 1.0 and the proposed XML 1.1.

    [i]I have placed a space between & and # so thatit will be accepted by the Lounge parser
    Jerry

  4. #4
    Star Lounger
    Join Date
    Feb 2001
    Location
    UK
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: XML Euro

    When I replace the line in my xml document

    <country currencyFormat="

  5. #5
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: XML Euro

    This is something I have never come across... <img src=/S/hmmn.gif border=0 alt=hmmn width=15 height=15>

    have you tried:


    <country currencyFormat="& euro;, #,##0.#0">UK</country>
    Jerry

  6. #6
    Star Lounger
    Join Date
    Feb 2001
    Location
    UK
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: XML Euro

    I'm afraid it won't display with that either - do I need to remove any spaces?

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: XML Euro

    Perhaps this is why the U.K. has not converted to the Euro? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    Does this old article help? XML.com: Euro-XML

    My old XML book says that the content type of each attribute is defined in the DTD. I'm not sure what DTD applies to your document. Is it stated expressly, or are you letting IE do whatever it wants? If there is a specific DTD, what kind of content is specified for currencyFormat? Presumably CDATA...

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: XML Euro

    I don't know about spaces, but make sure you have all the punctuation:

    <big>€</big>

  9. #9
    Star Lounger
    Join Date
    Feb 2001
    Location
    UK
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: XML Euro

    This one did the trick:

    <country currencyFormat="€, #,##0.#0">UK</country>

    I was in favour of joining the Euro but I'm now against it if it causes this much grief every time!

    Many thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •