Page 1 of 1
Spanish Characters
Posted: Wed Mar 30, 2005 12:18 pm
by jay.upchurch
I am now running a Spanish version of my site. The search functionality appears to work fine. However I've noticed that Webinator treats "crédito" different than "credito" when returning its search results. Ideally I would like for Webinator to be smart enough to handle this correctly. In this case the page contains "crédito". I would expect it to be archived that way when indexing the site. However when searching the db, both "crédito" and "credito" would return the same page results. Is this possible?
Spanish Characters
Posted: Wed Mar 30, 2005 3:08 pm
by Kai
You would need to obtain or create a custom locale that maps the accented characters to their non-accented versions when doing upper/lower case conversions. since they are different characters with different meanings, not just different cases of the same character. The default C locale, and most other locales, keep the accents when upper/lower-casing.
Then you would need to change Storage Charset in Webinator's All Walk Settings to ISO-8859-1 so that single-byte characters are stored instead of UTF-8.
You would also need to edit the dowalk and search scripts and manually set the locale to your custom locale. Uncomment the lines like this:
<sql "set locale='es_ES'"></sql>
and change `es_ES' to your custom locale.
Spanish Characters
Posted: Tue Jun 21, 2005 7:16 pm
by jay.upchurch
Unfortunately I am not familiar with creating custom locales. However after doing a quick search, it appears a locale is an OS attribute. Is it possible to assign a locale to just Webinator at runtime instead of adjusting it for the entire OS?
Spanish Characters
Posted: Thu Jun 23, 2005 11:27 pm
by jay.upchurch
Can you point me to any help documentation for creating a custom locale?
Spanish Characters
Posted: Fri Jun 24, 2005 10:10 am
by mark
Sorry, no, that's an OS specific thing. Check the docs for your OS.