Print Page | Close Window

Testing URLWrite and specials characters

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=27511
Printed Date: 02 April 2026 at 2:16pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Testing URLWrite and specials characters
Posted By: marianux
Subject: Testing URLWrite and specials characters
Date Posted: 03 July 2009 at 12:19pm
Hi, im testing URLWrite funcionality and it seem works all right.
But i got some problem with words that include letters with accents.
The forum is in spanish and maybe that some titles of Topics or Forums would be i.e. camión
then the rewrite URL will be htpp://mydomain.com/forum/camin.html
 
If i write the url in browser: htpp://mydomain.com/forum/camión.html it works fine but id like to get an URL with letter and accent or at least get the letter witout accent.
 
Any idea ?
 
Thanks in advance



Replies:
Posted By: WebWiz-Bruce
Date Posted: 03 July 2009 at 2:08pm
Some browsers have difficulty working with non ASCII characters so any characters which are not ACSII 0-9, A-Z, a-z are stripped.

If you could post a list of accented characters that you want and the a-z equivalent without the accent will have a look at having this put into a future release.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: marianux
Date Posted: 03 July 2009 at 2:16pm
Hi, thanks for your answer.
I have bee taking a look to functions that filter for SEO and now i know where i could change it.
List of accents and special characters, at least for spanish, could be:
 
á -> a
é -> e
í -> i
ó -> o
ú -> u
 
ñ -> n (or even nh)
 
Thanks for you support


Posted By: ChokoL@te
Date Posted: 08 July 2009 at 11:37pm
Marianux, where can I change this?
Do you solve the issue of the accentuated letters to the all forum?


Posted By: marianux
Date Posted: 10 July 2009 at 4:50pm
Yes, just take a look function SEOURLTitle in includs/functions_filters.asp file


Posted By: ChokoL@te
Date Posted: 10 July 2009 at 5:13pm
Thank you. I found in folder /functions, but where exactly I should add this code?
Please, be more specific.


Posted By: marianux
Date Posted: 10 July 2009 at 8:07pm

Sorry but i think its not right to write internal code from software.

Maybe i send you an PM.
Do you speak spanish?


Posted By: ChokoL@te
Date Posted: 10 July 2009 at 8:18pm

I would appreciate it. Si, escribo perfectamente el español.



Posted By: marianux
Date Posted: 10 July 2009 at 8:21pm
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


Posted By: ChokoL@te
Date Posted: 14 July 2009 at 4:55pm
I dit it. But this cannot resolve our issue with acentuated letters in the forum. We downloaded the spanish lenguage files and acentuated letters appears bad. How we can solve this?


Posted By: hole19
Date Posted: 14 July 2009 at 8:04pm
Edit includes/setup_options_inc.asp
Desactivate line 142: Const strPageEncoding = "utf-8"
Activate line 145: Const strPageEncoding = "iso-8859-1"


Posted By: PedroCury
Date Posted: 17 August 2009 at 6:31pm
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.


Posted By: TonyG
Date Posted: 18 August 2009 at 9:48pm
Originally posted by marianux marianux wrote:

á -> a
é -> e
í -> i
ó -> o
ú -> u
 
ñ -> n (or even nh)

Don't forget cigüeña






-------------
To err is human, but to really foul things up requires a computer



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net