Re: non-breakable space

"Jabba Laci" <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hi,

I added the character '\u00A0' to the end of the string, but as a
result I get "Address: " instead of "Address:&nbsp;". When I verify it
in a browser, I have a funny character ("Address:Â") at the place of
the space.

Laszlo

>> I'd like to produce the following XHTML output:
>>
>> <xforms:label>Address: </xforms:label>
>>
>> How to prevent that JDOM changes & to & ?
>
> You don't. Just stick the non-breaking space character itself in content, and JDOM will escape it properly. Code for the character is 160, so in Java string constant it'd be something like "Address:\u00A0".

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.