File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes copy right and trade mark Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "copy right and trade mark " Watch "copy right and trade mark " New topic
Author

copy right and trade mark

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hi all,

I have a UTF-8 DB and i have stored copy right and trade mark symbol in DB.
How can I build the XMl from the data which contains these charactes
WHat is the equivalent of copy right and trade mark in XML
Thx
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
Hello,
copyright is: &-#169;
registered tm is: &-#174;
(note remove the "-")
Not a flash solution by any means, but what I've generally done in the past is just "clean" these special characters before building the xml.
eg.
read the value from your DB
scan for special characters
replace them with escaped version.
James.
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Hey James,
Thx for the reply,
Can you pls tell me what all the spl characters I need to take care of b4 I build the XML.
Pls note ....I need to take care of multilingual data as my DB is UTF-8
Thx
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
There are several lists that give character-to-entity listings, here are a couple:
http://www.w3schools.com/html/html_entitiesref.asp
http://userpages.itis.com/thekings/help/special_characters.html
A search on UTF-8 characters in XML, or special UFT-8 characters in HTML yielded a whole slew of results.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: copy right and trade mark