Replacing a character with another in all SQL queries

Topics: Core, Customizing Orchard, General, Localization, Writing modules, Writing themes
Apr 15, 2014 at 4:03 PM
In some old keyboard layouts for Persian language, We have some Arabic characters such as "ي".
This makes problem for searching and for appearance of web site.
How and where can i replace any wrong input character with correct one?
Should i modify any sql query that will be sent to database? How?
For if user entered "ي", I want to replace it with "ی". Or if entered "ك", I want to replace it with "ک".