Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unprintable characters

66 views
Skip to first unread message

john

unread,
Jan 26, 2006, 9:41:39 AM1/26/06
to
hi all,

is there any of getting the "unprintable" character such as "&HA0" to appear
as   ?

thanks,


Martin Honnen

unread,
Jan 26, 2006, 9:56:15 AM1/26/06
to

john wrote:


> is there any of getting the "unprintable" character such as "&HA0" to appear
> as   ?

Which Unicode character exactly is "&HA0"?
Do you have that "unprintable" character in the input XML? Is the input
XML well-formed?


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/

john

unread,
Jan 26, 2006, 2:57:49 PM1/26/06
to
yes the xml file is well formed.
it's some kind of hidden spacing.
the original file is was in hex form and then after transformating it,
theres' a blank space in that location.


"Martin Honnen" <maho...@yahoo.de> wrote in message
news:OzbPqioI...@TK2MSFTNGP10.phx.gbl...

Mihai N.

unread,
Jan 26, 2006, 11:05:00 PM1/26/06
to
> is there any of getting the "unprintable" character such as "&HA0" to
> appear as &#160; ?
That is a non-breaking space.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email

Joe Fawcett

unread,
Jan 27, 2006, 3:51:24 AM1/27/06
to
"john" <justi...@hotmail.com> wrote in message
news:ejIDLLr...@TK2MSFTNGP09.phx.gbl...
Trying to clarify...

The character which is expressed as a0, often termed a non-breaking space
can be represented in XML documents as:
& - #- x-a-0 -;
OR
& -#-160-; (if you prefer decimal to hexadecimal)
(both without the - which I've put in to overcome some newsreaders'
helpfulness)

If you want to use the &-n-b-s-p-; that is used in HTML then you'll need to
embed a DTD into your document.

--

Joe Fawcett (MVP - XML)

https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5

Martin Honnen

unread,
Jan 27, 2006, 10:25:19 AM1/27/06
to

john wrote:

> yes the xml file is well formed.
> it's some kind of hidden spacing.
> the original file is was in hex form and then after transformating it,
> theres' a blank space in that location.

Well, if you have the character 160 in there properly encoded then it
shouldn't be a problem.
I don't think XSLT allows you to force output with a character reference
e.g. &#160; (& # 1 6 0 ; for web forum), unless you tried e.g.
<xsl:output encoding="US-ASCII" />
which then would force anything outside of ASCII, so anything beyond 127
to be output as a character reference.

0 new messages