Кирилица(utf-8) и permalink_fu

lib/permalink_fu.rb:

- Добавяме – require ‘unicode’ – unicode gem

- Променяме ред: 195, 196

PermalinkFu.translation_to = ‘utf-8′
PermalinkFu.translation_from = ‘utf-8//IGNORE’

- Коментираме ред: 17 – #result.gsub!(/[^\x00-\x7F]+/, ”)

- Променяме ред: 21 – “result.downcase!”  на  “result = Unicode.downcase(result)”

Би трябвало, вече да работи !

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>