sebbacon/alaveteli — Issue #282: url generation is dropping accentued characters
Author: pmarkun
Created: 2011-11-07 17:38:17+00:00
State: open

When the system generates URLs it strips all accentued characters:

Respostas públicas do Queremos Saber becomes:
http://queremossaber.org.br/pt/request/respostas_pblicas_do_queremos_sa

This is not a big issue most of the time (altought it does remove some readability from the urls) but it's specially troublesome when importing authorities from a CSV file.

The system often crashes when trying to import different bodies because it fails to generate an unique url:

For instance I had problems with both:

Prefeitura de Curuçá - PA
and
Prefeitura de Curuá - PA

Prefeitura de Piraju - SP
and
Prefeitura de Pirajuí - SP

They all go by:
http://queremossaber.org.br/pt/body/prefeitura_de_curu_pa
and
http://queremossaber.org.br/pt/body/prefeitura_de_piraju_sp

(yeah, weird city names!)

I've managed to bypass this by removing the accent from the name of the city.