How to handle special charters in query
Hi
Its in fact easy to handle special characters like "%" in query, with just a bit of research one can found solution for this.
Today when i checked events for my server i found that one error message and that was because a user searched for " l'atelier " on my site, with this word the query will become like:
Select * from Category where MDelete =0
And CategoryName Like '%l'atelier%'
where as for a simple word like e.g "lipstick" the query works fine and will be:
Select * from Category where MDelete =0
And CategoryName Like '%lipstick%'
Any body please tell me how can i handle this??
fawadkhalil
Junior Poster in Training
88 posts since Dec 2008
Reputation Points: 10
Solved Threads: 2
adam_k
Practically a Posting Shark
804 posts since Jun 2011
Reputation Points: 256
Solved Threads: 149