PC Review


Reply
Thread Tools Rate Thread

Check string for special characters

 
 
=?Utf-8?B?UmljYXJkbyBKZXN1cw==?=
Guest
Posts: n/a
 
      21st Feb 2005
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

 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      21st Feb 2005

>For this to work i have to remove all special caracters that the Name
>propertie doesn't support.


And what characters are "special"?



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
=?Utf-8?B?UmljYXJkbyBKZXN1cw==?=
Guest
Posts: n/a
 
      21st Feb 2005
Characters like "/#$%&()=' or even á é õ
This are a few examples.


"Mattias Sjögren" wrote:

>
> >For this to work i have to remove all special caracters that the Name
> >propertie doesn't support.

>
> And what characters are "special"?
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      22nd Feb 2005
Ricardo Jesus <(E-Mail Removed)> wrote:
> 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.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
=?Utf-8?B?UmljYXJkbyBKZXN1cw==?=
Guest
Posts: n/a
 
      22nd Feb 2005
I've solved this problem, thanks everyone

"Jon Skeet [C# MVP]" wrote:

> Ricardo Jesus <(E-Mail Removed)> wrote:
> > 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.
>
> --
> Jon Skeet - <(E-Mail Removed)>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking for special characters in a string John Microsoft Excel Programming 1 4th Feb 2009 08:37 PM
How To search with special characters in the string Chuck Microsoft Outlook Discussion 7 8th Oct 2008 03:27 PM
Special Characters(&,etc..) in a string between xml tags =?Utf-8?B?TkFU?= Microsoft VB .NET 2 26th Jul 2006 11:13 AM
Special Characters in Query String SMG Microsoft ASP .NET 20 25th May 2005 12:45 PM
Special Characters in Query String SMG - Idealake Microsoft ASP .NET 3 20th May 2005 01:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:44 AM.