Hi,
I already open a issue about this:
http://opensource.atlassian.com/projects/roller/browse/ROL-1420
For now, I've implemented this by myself using a very simple
conversion algoritm:
public static String removeAccents(String s){
String sSemAcento = s;
sSemAcento = sSemAcento.replaceAll("[áàâãä]","a");
sSemAcento = sSemAcento.replaceAll("[ÁÀÂÃÄ]","A");
sSemAcento = sSemAcento.replaceAll("[éèêë]","e");
sSemAcento = sSemAcento.replaceAll("[ÉÈÊË]","E");
sSemAcento = sSemAcento.replaceAll("[íìîï]","i");
sSemAcento = sSemAcento.replaceAll("[ÍÌÎÏ]","I");
sSemAcento = sSemAcento.replaceAll("[óòôõö]","o");
sSemAcento = sSemAcento.replaceAll("[ÓÒÔÕÖ]","O");
sSemAcento = sSemAcento.replaceAll("[úùûü]","u");
sSemAcento = sSemAcento.replaceAll("[ÚÙÛÜ]","U");
sSemAcento = sSemAcento.replaceAll("ç","c");
sSemAcento = sSemAcento.replaceAll("Ç","C");
sSemAcento = sSemAcento.replaceAll("ñ","n");
sSemAcento = sSemAcento.replaceAll("Ñ","N");
return sSemAcento;
}
I've created this in the org.apache.roller.util package
(Utilities.java) and use it in
createAnchorBase method (WeblogEntryData.java):
base = Utilities.removeAccents(tmp);
It's working for me, but should be better be a option on the settings
of the webblog and include all accented letters not only the
portuguese one's I'm using.
bye
On 6/10/07, Anil Gangolli <[EMAIL PROTECTED]> wrote:
I could see encluding an enhancement that could be activated to do that
optionally for a site. It is very Latin-1 centric though. UTF-8 is
preferable as a common uniform solution.
--a.
----- Original Message -----
From: "Enrique Rodríguez Lasterra" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 07, 2007 11:09 AM
Subject: Re: accented entry title
I think that should be better if roller replace acents on uri with non
accented characters. It should be better in many terms, included SEO.
Regards, Enrique.
2007/6/7, Anil Gangolli <[EMAIL PROTECTED]>:
>
>
> Make sure that URIEncoding="UTF-8" is on all of the Tomcat connector
> elements that you are using. For example, if using AJP, make sure it is
> on
> the Connector element for AJP.
>
> In addition, if you are going through a frontend web server, e.g. Apache
> HTTP with mod_jk, make sure it is passing UTF-8 properly. People seem to
> recommend
>
> JKOptions +ForwardURICompatUnparsed
>
> --a.
>
>
> ----- Original Message -----
> From: "Raúl Fuenzalida" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, June 06, 2007 11:43 PM
> Subject: Re: accented entry title
>
>
> > Hi.
> > Well, after of reading the reply, I told to the guy who is giving me
> > support, what to do. He understood perfectly and later he did reply me
> > telling me that he done the fix as I told to him. But when I went to
> > see the results, still appear the Tomcat's 404 page.
> >
> > Any idea? Do I go to tomcat web and ask there? thanks in advance.
> >
> > raúl
> >
> >
> > On 6/6/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
> >> The problem is going to be somewhere in your webserver config. Roller
> >> does all the right things in terms of providing UTF-8 support,
> including
> >> in urls, but in order for things to work you need to make sure your
> >> webserver is properly configured to use UTF-8 as the uri encoding. If
> >> you look at the source of the page your url is ...
> >>
> >> http://www.transitorio.cl/weblog/entry/poes%C3%ADa_infantil_en_papel
> >>
> >> which is correct. so the problem is that your webserver is not
> properly
> >> decoding that url.
> >>
> >> -- Allen
> >>
> >>
> >> Raúl Fuenzalida wrote:
> >> > I have a trouble with an entry which has an accented title. When
> >> > trying viewing the entry, appears an error page. To try yourself, go
> >> > to this page:
> >> > http://www.transitorio.cl/weblog/page/meta
> >> > and click "Poesía Infantil en Papel" under the "titulos" list
> >> >
> >> > thanks in advance
> >> >
> >> > raúl.
> >>
> >
>
>
--
_______________________________
Enrique Rodriguez Lasterra
lasterra AT javahispano DOT org
http://www.javahispano.org
Asociación sin ánimo de lucro sobre java
Spanish non profit association about java
--
Wladimir Boton
http://www.wboton.com