#Convert Turkish-specific letters into their closest look-alikes... #This will create urls that make sense. This dictionary can be extended #to cover languages other than Turkish. conversion_table = {u'\u0131' : 'i', u'\u015f' : 's', u'\xf6' : 'o', u'\xfc' : 'u', u'\u011f' : 'g', u'\xe7' : 'c', '\'' : ''} for k, v in conversion_table.items(): if k in string: string = string.replace(k, v)