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

RE: Converting &, >, <, ", and other odd-ball characte

Subject: RE: Converting &, >, <, ", and other odd-ball characters...
From: "Kevin Duffey" <kevin.duffey@xxxxxxxx>
Date: Thu, 15 Feb 2001 21:24:46 -0800
kevin duffey
Interesting dilema. For the most part, we are a b2b site that deals with
specific clients. Very unlikely this will occur, as far as the non-ascii
characters. I guess you could just "omit" them? I am not sure how it would
be handled. How do you make a web-based solution work with these characters?

thanks.


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Mike Brown
> Sent: Thursday, February 15, 2001 10:13 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Converting &, >, <, ", and other odd-ball
> characters...
>
>
> Kevin Duffey wrote:
> > Oh yeah..not sure if you know this or not, but a "performance" tip..
>
> Yes, I knew there were better ways to do it, and I've done those things
> before; I didn't have access to that code though and I just wanted to get
> across the general idea, and JSP declarations, in case it was going to be
> helpful.
>
> > Lastly, can you think of any other characters that are a
> problem when used
> > in input boxes, text areas, or drop-downs that need to be converted?
>
> " -> &quot; only needs to happen when you're putting the string into an
> attribute value that is delimited by double quotes. Same for ' -> &apos;
> when using apostrophes.
>
> Escaping these characters is only half of your worries. The other half is
> that you cannot be guaranteed of the encoding of the form data that
> arrives in the HTTP request. When people enter non-ASCII characters,
> your JSP engine has maybe an 80% chance of decoding them properly.
>
>    - Mike
> ____________________________________________________________________
> Mike J. Brown, software engineer at            My XML/XSL resources:
> webb.net in Denver, Colorado, USA              http://skew.org/xml/
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


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.