Ad
  • Custom User Avatar

    This solution fails on Unicode strings, for example "Иван Петров" should yeild "И.П", but yeilds "Ð.Ð" instead.
    To work correctly, this function needs to use runes (see my comment on the top solution for the code)