On Sep 26, 2005, at 4:21 PM, marc wrote:
>>> But the response will contain records using utf-8 which doesn't
>>> seem to
>>> display correctly. Try "lenin single works" .
>>>
>>>> http://spell.ockham.org/bl/
>>
>> I feel like the Ugly American because I do not know how to
>> resolve this problem, and it appears in many of my other
>> implementations.
>> What encoding should I add to my output so it works correctly?
>
> well, whatever encoding there was used in the recods in the first
> place.
>
> My experience with all this encoding problems is that you need to
> do three-four things right
>
> 1) know which encoding you are coming from
> 2) know which encoding you want to go to
> 3) apply the right encoding transformation
> 4) label your XML with the right encoding afterwards
By changing my Perl code from:
print $cgi->header(-type => 'text/html');
to:
print $cgi->header(-type => 'text/html', -charset => 'UTF-8');
I was able to make the query above work. Try:
http://spell.ockham.org/bl/?cmd=search&query=lenin+single+works
I think I'm headed in the right direction.
--
Eric Lease Morgan
University Libraries of Notre Dame
|