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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paragraph Symbols

Status
Not open for further replies.

CaptainBob007

Programmer
Dec 20, 2003
42
US
Hello,

I'm working on a system to parse XML files we receive from a client and transform them to HTML. One of the characters contained in this XML file is the "paragraph" symbol, which I will show: ¶

The file is standard XML 1.0 in UTF-8. I can't figure out for the life of me how to get C# to parse this symbol. I tried entering it literally, such as
Code:
string.IndexOf('¶')
and also in unicode, like
Code:
string.IndexOf('u\00B6')
both of which have been to no avail. Is there something I'm missing here?
 
My apologies, for the unicode part I meant

Code:
string.IndexOf('\u00B6')
 
here's a small excerpt:

...as they will become increasingly vital. ¶ "Mergers of service providers have pressured...

The paragraph symbols all occur within a single xml node, and simply denote paragraphs within that section of the document. I'm trying to parse the location of them so I can replace them with <p> tags instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top