Letractively / juicelib

Automatically exported from code.google.com/p/juicelib
0 stars 0 forks source link

Function to ASCII-fy a string #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be useful to have a function in juice.text that removes character
accidents from strings, resulting into a string that contains only chars in
the [a-z] range.

The string should verify, for each char, if it is a char outside the ascii
range, and in case it is, turn that char into a ascii one.

Examples:

"São Paulo" => "Sao Paulo"
"Mañana" => "Manana"
"Àguas-vivas criam problemas para a população." => "Aguas-vivas criam
problemas para a populacao."

When can this be useful? client-side validation and event handling, for
instance.

Original issue reported on code.google.com by lul...@gmail.com on 6 Sep 2007 at 6:12

GoogleCodeExporter commented 8 years ago
Bruno in going to implement the new feature.

Original comment by mgal...@gmail.com on 7 Nov 2007 at 12:34