Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copy right and trade mark

 
Mary Cole
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic