Same old problem with URL character replacement...
- InnerFlash
- Topic Author
- Offline
- New Member
17 years 5 months ago #739
by InnerFlash
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
Hi Emir,
I just bought this component this morning, and now that I'm back from work and testing, I've stumbled on a common issue: the character replacement for URLs.
I'm yet to understand what I did wrong, and yes, I've read the FAQ post on the 404 error.
The replacements I've done are impossible in my language (portuguese), i.e. "aa" , "oo" , "ii", etc. The only thing I'm not sure of is if I can use the same replacement rule for more than one character..., i.e. "ã=>aa,å=>aa".
I know I can do these changes directly on the .htaccess as well. What do you recommend?
Wallace
I just bought this component this morning, and now that I'm back from work and testing, I've stumbled on a common issue: the character replacement for URLs.
I'm yet to understand what I did wrong, and yes, I've read the FAQ post on the 404 error.
The replacements I've done are impossible in my language (portuguese), i.e. "aa" , "oo" , "ii", etc. The only thing I'm not sure of is if I can use the same replacement rule for more than one character..., i.e. "ã=>aa,å=>aa".
I know I can do these changes directly on the .htaccess as well. What do you recommend?
Wallace
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
Please Log in or Create an account to join the conversation.
- InnerFlash
- Topic Author
- Offline
- New Member
17 years 5 months ago #740
by InnerFlash
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
BTW,
These are the rules as I typed them in the field:
Ã¥=>aa,á=>aa,à=>aa,ã=>aa,â=>aa,ó=>oo,ô=>oo,õ=>oo,ö=>oo,ÃÂ=>ii,é=>ee,ê=>ee,ø=>oe,æ=>aae,ü=>uu,ç=>cc
These are the rules as I typed them in the field:
Ã¥=>aa,á=>aa,à=>aa,ã=>aa,â=>aa,ó=>oo,ô=>oo,õ=>oo,ö=>oo,ÃÂ=>ii,é=>ee,ê=>ee,ø=>oe,æ=>aae,ü=>uu,ç=>cc
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
17 years 5 months ago #742
by Saka
No you can't. You must use unique replacement for each character.
For example: "ã=>ea,å=>aa".
Emir Sakic
www.sakic.net
The replacements I've done are impossible in my language (portuguese), i.e. "aa" , "oo" , "ii", etc. The only thing I'm not sure of is if I can use the same replacement rule for more than one character..., i.e. "ã=>aa,å=>aa".
No you can't. You must use unique replacement for each character.
For example: "ã=>ea,å=>aa".
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- InnerFlash
- Topic Author
- Offline
- New Member
17 years 5 months ago #744
by InnerFlash
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
Thanks a lot Emir...
Below is the solution I came up with for Portuguese characters, in case someone here runs into the same trouble:
ã=>aa,á=>aaa,à=>aaaa,â=>aaaaa,Ã¥=>aaaaaa,õ=>oo,ó=>ooo,ô=>oooo,ö=>ooooo,ÃÂ=>ii,é=>ee,ê=>eee,ø=>ooe,æ=>aae,ú=>uu,ü=>uuu,ç=>cc
Below is the solution I came up with for Portuguese characters, in case someone here runs into the same trouble:
ã=>aa,á=>aaa,à=>aaaa,â=>aaaaa,Ã¥=>aaaaaa,õ=>oo,ó=>ooo,ô=>oooo,ö=>ooooo,ÃÂ=>ii,é=>ee,ê=>eee,ø=>ooe,æ=>aae,ú=>uu,ü=>uuu,ç=>cc
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
Please Log in or Create an account to join the conversation.
- InnerFlash
- Topic Author
- Offline
- New Member
17 years 5 months ago #757
by InnerFlash
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
One thing that left me wondering...
Because of the special characters that had to be replaced in Portuguese, my urls became a little not read-friendly. Like so:
http://www.artistadigital.net/ajuda/diferenccas-entre-membros-e-usuaaarios/quais-saao-os-privileegios-de-um-membro?/
However, when I manually modify the URL so that all the extra letters are gone, the URL still works (note words like "usuAAArios" became "usuArios"
http://www.artistadigital.net/ajuda/diferencas-entre-membros-e-usuarios/quais-sao-os-privilegios-de-um-membro?/
The problem is, even though it works without the extra letters, the URL produced will still have them. I was wondering if there's a workaround for this, some javascript, or if I could use hexadecimal characters to define letters without having to make them so unique ("aa", "aaa", "aaaa", etc):
http://www.geocities.com/dtmcbride/tech/charsets/ascii.html >> hex. char.
I'm sorry to bug you with it, but I'm just trying to find out a solution for my problem...
Cheers
Because of the special characters that had to be replaced in Portuguese, my urls became a little not read-friendly. Like so:
http://www.artistadigital.net/ajuda/diferenccas-entre-membros-e-usuaaarios/quais-saao-os-privileegios-de-um-membro?/
However, when I manually modify the URL so that all the extra letters are gone, the URL still works (note words like "usuAAArios" became "usuArios"
http://www.artistadigital.net/ajuda/diferencas-entre-membros-e-usuarios/quais-sao-os-privilegios-de-um-membro?/
The problem is, even though it works without the extra letters, the URL produced will still have them. I was wondering if there's a workaround for this, some javascript, or if I could use hexadecimal characters to define letters without having to make them so unique ("aa", "aaa", "aaaa", etc):
http://www.geocities.com/dtmcbride/tech/charsets/ascii.html >> hex. char.
I'm sorry to bug you with it, but I'm just trying to find out a solution for my problem...
Cheers
Community for Portuguese speaking Digital Artists...
www.artistadigital.net
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
17 years 5 months ago #759
by Saka
Emir Sakic
www.sakic.net
That's exactly what you get when you don't enter any replacements. You get URL encoded chars like %24, %45.
You can have it either URL encoded or replaced by unique strings. Or enter manual alias for URLs you don't like.
You can have it either URL encoded or replaced by unique strings. Or enter manual alias for URLs you don't like.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.