Well , i have seen another post with the same solution for nordic characters so i think it can help to people with forums withs spanish character:
Just in funcion SeoUrlTitle in includs/functions_filters.asp file
just after line:
strInputEntry = Replace(strInputEntry, "/", " ", 1, -1, 1)
Then put in: 'INICIO Cambio ------------------------------------- strInputEntry = Replace(strInputEntry, CHR(225), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(233), "e", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(237), "i", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(243), "o", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(250), "u", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(241), "n", 1, -1, 0) ' para la ñ >> n strInputEntry = Replace(strInputEntry, CHR(231), "s", 1, -1, 0) '------------------------------------------ FIN Cambio
|
|
For the ones that use the forum with iso-8859-1 encoding, I used the following code for portuguese language:
strInputEntry = Replace(strInputEntry, CHR(224), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(225), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(226), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(227), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(228), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(229), "a", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(232), "e", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(233), "e", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(234), "e", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(235), "e", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(236), "i", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(237), "i", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(238), "i", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(239), "i", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(242), "o", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(243), "o", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(244), "o", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(245), "o", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(246), "o", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(249), "u", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(250), "u", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(251), "u", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(252), "u", 1, -1, 0) strInputEntry = Replace(strInputEntry, CHR(241), "n", 1, -1, 0) 'ñ strInputEntry = Replace(strInputEntry, CHR(231), "c", 1, -1, 0) 'ç
It should be used in the same place Marianux is using.
It´s working for my tests.
|