laravel/laravel — pull request #220 by ianlandsman (2011-12-28 15:28:04+00:00)
Title: Non ASCII characters get removed in URL::slug

During the back and forth on pull request 215 I noticed the URL::slug runs the title text through the STR::ascii method which removes non-ascii characters often leaving you with a completely empty string as the result. This change removes that and simply creates the slug on the current text. For example:

URL::slug('Я люблю еду');
URL::slug('私は料理が大好き');

Another issue thought is that this does not encode the output. If this is to be used in the view code to create a URL it's likely it should be encoded, but I don't know if we want to handle that within this logic.