Re: [xsl] Output: XML to XML scrambling unicode characters

Subject: Re: [xsl] Output: XML to XML scrambling unicode characters
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Mon, 4 Mar 2002 11:17:22 -0800 (PST)
--- David Carlisle <davidc@xxxxxxxxx> wrote:
>  For example: I know that the "& eacute;"
>  in utf-8 should be "& #233;"
> 
> No, that isn't the utf-8 encoding for e acute it is an XMl numeric
> character reference. the XML is written in ascii (and so in utf8 or
> latin1). However to write an eacute in utf8 takes two bytes "Ã ©"
> Just as to write it in latin1 takes 1 byte é.

Dear David,
I appreciate your willingness to "suffer fools gladly". Please bear
with me at I attempt to state this again.

The real issue is that I need to see "& #233;" in order to work with
these extended characters (seeing as some documents have all kinds of
scripts generated by local word processor fonts) to work with them
and know they are correct in text editor (Note Tab Pro).

However, I did refer to "& #233;" as utf-8. I would not have ventured
such a statement without some reason. Michael Kay's book has a table
in section three under Style Sheet Structure (p. 129, first edition).
I will attempt to reproduce it here.

     Character          Unicode Symbol
       tab                  #x9
       newline              #xA
       Carriage return      #xD
       space                #x20

If I use these symbols, I must add "&" before and ";" after. It was
my assumption that "& #233;" was not any different than these. This
is the reason why I called "& #233; a utf-8 rendering of "e acute".

My conclusion, is that I can search/replace and manipulate these
symbols, what I receive in my XML to XML utf-8 transformation I
cannot niether through my keyboard nor through my text editor. It is
my problem, I know, but I wanted to express it.

Thanks for your help and information.
Mike F.


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread