Page 1 of 1

Scandinavian characters

Posted: Tue Jun 08, 2004 4:41 am
by rw1
I am a novice to webinator 5.0.
1) When searching my website, scandinavian characters are not accepted.
2) in the display of search results, å,ø and æ do not display correctly.

Can anyone tell me where to make the appropriate customizing?

Scandinavian characters

Posted: Tue Jun 08, 2004 10:30 am
by mark
If your webserver locale is not correct you may have to set it manually. In the dowalk and search scripts you'll find lines that look like
<!-- <sql "set locale='es_ES'"></sql> -->
Remove the comments and change es_ES to whatever's appropriate for your system (I don't know what that would be).
<sql "set locale='es_ES'"></sql>

Scandinavian characters

Posted: Tue Jun 08, 2004 5:58 pm
by rw1
I have changed
<!-- <sql "set locale='es_ES'"></sql> -->
to
<sql "set locale='da_DK'"></sql>
in both the dowalk and search files. However, that does not seem to help.
However, I found out that if I change the character set in the browser (IE 6.0) from 'Western European' to 'Unicode UTF-8', everything seems to work nicely (for that specific session). I am using a Sun ONE Webserver 6.1 under Windows 2000.

Scandinavian characters

Posted: Wed Jun 09, 2004 11:15 am
by Kai
Yes, Webinator 5.0 outputs in UTF-8, so you can also add a meta line to notify the browser. Add this to your top.html template:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

and browsers will recognize the charset.

Scandinavian characters

Posted: Thu Jun 10, 2004 6:00 pm
by rw1
Thanks a lot for your help. That solved my output problems. But I had to do the same on the input page. It would be nice to provide a standard way to handle European character sets on the search part. But perhaps I am just too much non-expert....

Scandinavian characters

Posted: Thu Jun 10, 2004 6:09 pm
by John
We will be adding a flag to subsequent versions. In the meantime you can edit the search script to decode the UTF-8, for example by changing the <send $dtitle> and <send $dabstract> to <fmt %!V $dtitle> and <fmt %!V $dabstract>