kohana/core — pull request #521 by Come2Daddy (2014-07-26 12:36:03+00:00)
Title: Added encoding support to ucfirst method

Uses mb_strtoupper and mb_substr to achieve Upper Case on first charater of each word along with encoding, following Text::ucfirst() behavior. Default encoding is UTF-8.

Exemple : Text::ucfirst('вы-рок', '-', 'UTF-8'); => 'Вы-Рок'