You could try encoding the file as UTF-16, and mark it as so:

<?xml version="1.0" encoding="UTF-16"?>
<...>

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/xml21.htm
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funca110.htm

By using the right encoding, you don't need to worry about escaping/replacing anything.

-d
  ----- Original Message -----
  From: Scott Brady
  To: CF-Talk
  Sent: Tuesday, December 09, 2003 2:00 PM
  Subject: Re: XML and the Degree Sign

  Well, it's partially solved.  I'm replacing the degree sign with #176;
  and that seems to work in my plain test XML page.  Of course, in the
  application, I have to do the replace in the Oracle query itself, but am
  having some trouble getting it to display.  It's kind of hard to
  explain, but I have to actually double-escape the pound sign in the
  query (so it comes out as ####176; ), but that's not quite working right.

  I'm checking to see if I can just replace it with "deg" or "degrees".

  Thanks for all the suggestions!

  Scott

  Scott Brady wrote:

  > Nick de Voil wrote:
  >
  > > Also a kludge I guess but you could substitute them all with the entity
  > > &deg;
  > >
  > Actually, it doesn't seem to like &deg; either.  Since we do have some
  > &apos; in there (from XMLFormat() ), it doesn't choke on every entity.  
  > I guess I can try the ASCII version and see what happens.
  >
  > Scott
  >
  > --
  > ---------------------------
  > Scott Brady
  > http://www.scottbrady.net/
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to