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

Re: Character encoding/representation from ISO-8859-1

Subject: Re: Character encoding/representation from ISO-8859-1 to UTF-8
From: "Bridger Dyson-Smith bdysonsmith@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Oct 2016 19:55:38 -0000
Re:  Character encoding/representation from ISO-8859-1
Hi Eliot

On Tue, Oct 11, 2016 at 3:36 PM, Eliot Kimber ekimber@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> The characters are not just the ASCII bytes.
>
> I think you will need to match on the characters in question and replace
> them with the desired character, e.g.:
>
> <xsl:template match="text()[contains(., 'C"b,b"')]">
> <xsl:value-of select="replace(., 'C"b,b"', 'b')"/>
> <xsl:template/>
>
> And then use a more complete identity transform that handles the text
> nodes:
>
> Thank you for the response. I'm afraid I'm guilty of providing an
incomplete picture of my issue: I'm not sure what malformed(?) characters
are in the input documents. My apologies for leaving that detail out, but
seems like it would present a fairly significant problem for doing a
replace().


> Cheers,
>
> Eliot
>
> Again, thank for your time and trouble.
Bridger

>
> --
> Eliot Kimber
> http://contrext.com
>
>
>
> From: "Bridger Dyson-Smith bdysonsmith@xxxxxxxxx" <xsl-list-service@lists.
> mulberrytech.com>
> Reply-To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Date: Tuesday, October 11, 2016 at 2:59 PM
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Subject:  Character encoding/representation from ISO-8859-1 to UTF-8
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <documents>
> <document>The reality of the effect of natural ventilation in a
> residential attic cavity has been the topic of many debates and scholarly
> reports since the 1930C"b,b"s.</document>
> </documents>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <-list/1230532> (by
> email <>)

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.