Zetbox.Generator.AbstractBaseGenerator.Unidecode C# (CSharp) Метод

Unidecode() защищенный статический Метод

converts the string to ascii using transliteration. uses the _transliterationTable and a nice hack to reduce utf-8 to ASCII. probably works only with western characters.
See http://stackoverflow.com/questions/2173825/slugify-and-character-transliteration-in-c/2173922#2173922
protected static Unidecode ( string filename ) : string
filename string
Результат string
        protected static string Unidecode(string filename)
        {
            foreach (var kvp in _transliterationTable)
            {
                filename = filename.Replace(kvp.Key, kvp.Value);
            }
            return Encoding.ASCII.GetString(Encoding.GetEncoding("Cyrillic").GetBytes(filename));
        }