Return to Snippet

Revision: 25431
at March 30, 2010 16:48 by emregulcan


Initial Code
public static string ConvertTurkishChars(string text)
        {
            String[] olds = { "Ğ", "ğ", "Ü", "ü", "Ş", "ş", "İ", "ı", "Ö", "ö", "Ç", "ç" };
            String[] news = { "G", "g", "U", "u", "S", "s", "I", "i", "O", "o", "C", "c" };

            for (int i = 0; i < olds.Length; i++)
            {
                text = text.Replace(olds[i], news[i]);
            }

            text = text.ToUpper();

            return text;
        }

Initial URL

                                

Initial Description

                                

Initial Title
Convert special Turkish chars to international Latin chars

Initial Tags
c, convert

Initial Language
C#