Check string for special characters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm reading an XML document and creating a CMS Posting for eacho specific
node but i'm trying to save the posting using the title as Posting.Name.
For this to work i have to remove all special caracters that the Name
propertie doesn't support.

Can anyone hellp me?

Thanks
 
Ricardo Jesus said:
Characters like "/#$%&()=' or even ? ? ?
This are a few examples.

A few examples aren't enough though - you need to have a very precise
specification of which characters are allowed and which aren't.
Otherwise you won't be able to write the code, and if you *could* write
the code, you wouldn't know whether or not it does what it should.
 
I've solved this problem, thanks everyone

Jon Skeet said:
A few examples aren't enough though - you need to have a very precise
specification of which characters are allowed and which aren't.
Otherwise you won't be able to write the code, and if you *could* write
the code, you wouldn't know whether or not it does what it should.
 
Back
Top