[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: global find and replace certain "special" characte

Subject: RE: global find and replace certain "special" characters and replicate structure as it is
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 8 Sep 2004 19:04:42 +0100
xsl find and replace
This suggests that the file is not UTF-8 but iso-8859-1. So you need to find
out why it has an incorrect encoding declaration. The transformation trusts
the encoding declaration on its input file, and produces wrong output
because the actual encoding is not what it says it is.

Michael Kay 

> -----Original Message-----
> From: SANWAL, ABHISHEK (HP-Houston) [mailto:abhishek.sanwal@xxxxxx] 
> Sent: 08 September 2004 18:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  global find and replace certain "special" 
> characters and replicate structure as it is
> 
> This is what frhed (hex editor shows):
> 
> Text view: (Right side)
> tion     
> (5 space looking characters)
> 
> Hex View: (Left Side)
> 74 69 6f 6e a0 a0 a0 a0 a0.
> 
> (Is this what we are looking for?)
> 
> As copied and pasted from the editor:
> tion<bh:a0><bh:a0><bh:a0><bh:a0>
> 
> Please do let me know.
> 
> Thanks,
> 
> Abhishek
> ____________________________________________________________
> 
> Abhishek Sanwal
> HP - Houston Campus
> 
> -----Original Message-----
> From: Michael Kay [mailto:mhk@xxxxxxxxx] 
> Sent: Wednesday, September 08, 2004 12:24 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  global find and replace certain "special" 
> characters
> and replicate structure as it is
> 
> > 
> > The Source XML as generated by Infopath:
> > Encoding: UTF-8
> > Character in Hex: c2
> > 
> > Output XML generated after XSL Transform:
> > Encoding: UTF-8
> > Character in Hex: a0
> > 
> 
> Those are not characters, they are bytes: in UTF-8 any byte 
> above 7F is
> part
> of a multi-byte character, so the byte values are meaningless without
> knowing the preceding or following bytes.
> 
> Michael Kay

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.