Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encoding of bullet character in XML

Status
Not open for further replies.

jonharris7

Programmer
Aug 13, 2010
2
0
0
US
I'm trying to figure out the proper way to encode a bullet character (ASCII charater 149 decimal or 0x95 hex) in an XML document. Can I just put in a literal 0x95 code, i.e. a 0x95 hex character when viewed in a hex editor?

Or is it legal to specify a specic hex character in XML such as \x95 ?

How about as • ?

I'm getting mixed results depending on what XML parsers I use, some of which are home-grown. I've been experimenting with both Windows-1252 encoding and UTF-8. Windows-1252 is preferred if I can do it using that.

Thanks in advance for your help!
 
If numeric entities are use, use unicode •.
 
Any idea how I could make this more generic, i.e. handle any ANSI character from 128-255?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top