Scandinavian characters

Post Reply
rw1
Posts: 3
Joined: Tue Jun 08, 2004 3:50 am

Scandinavian characters

Post 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?
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

Scandinavian characters

Post 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>
rw1
Posts: 3
Joined: Tue Jun 08, 2004 3:50 am

Scandinavian characters

Post 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.
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

Scandinavian characters

Post 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.
rw1
Posts: 3
Joined: Tue Jun 08, 2004 3:50 am

Scandinavian characters

Post 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....
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Scandinavian characters

Post 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>
John Turnbull
Thunderstone Software
Post Reply