Someone can add articles on my ASPX webpage.
For example they type in something like this as Title:
Öçöçü
This is saved in the database as:
Öçöçü
But when I need to read it from the database to create an url for it, then I read it in this format:
Ococu
So I send people to read the article to this url: www.test.com/ococu
and the Ococu
is the Querystring.
I need to retrieve the content of this article with the title Öçöçü
, but I can't do something like
SELECT * FROM Article WHERE Title = Ococu
(Ococu = querystring), because it has been saved to the database as Öçöçü
What can I do to solve this? I need to execute that Query but that is not possible because the querystring doesn't contain the foreign characters which are saved in the database.
Or should I create two attributes in the database? One for the Title
and the other for the URL
? So I can execute the query in the where claus as: WHERE URL = Ococu
Please I need your help guys.