[jdom-interest] encoding problems when using get text

Steven Shand steven at intrallect.com
Wed Jun 19 09:32:53 PDT 2002


reply to myself!!

Thinking some more about it...Is this because java itself is UTF-8 and 
so what I am seeing is the java interpretation of °

As I'm sure you realise, encoding is not my strong point. Is it anybody's??

Mmmmm...



Steven Shand wrote:

> I've had a hunt round the javadocs as well as the FAQ/Archives but I 
> feel like I'm going round in circles!!
> 
> I create a document from a file ( or a string ), and the content of an 
> element contains text containing  something like °
> My call to get text on this element returns the unencoded value ( in 
> this case a degree symbol ). How can I maintain the original escaped 
> value??
> 
> I understand?! the issues with XMLOutputter and setting encoding type 
> but I don't see how that applies here.
> 
> If someone can help me out or point me in the right direction I'd be 
> mighty appreciative.
> 
> Thanks.
> 
> Steven Shand.
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com 
> 





More information about the jdom-interest mailing list