Hello!
I had some charset problems with swish-e when I had to display context
with results.
In fact, all my systems are in utf-8, and some docs are still in iso
format (coming for windows...).
As I want to output all in utf, here's what I do :
File : MyTemplate.pm
[snip]
7 use CharsetDetector;
[snip]
10 use Locale::Recode;
[snip]
325 if ( $description_prop ) {
326 $description = $this_result->{ $description_prop } || '';
327 $char = uc (CharsetDetector::detect($description) );
328 my $cd = Locale::Recode->new (from => uc($char), to => 'UTF-8');
329 $cd->recode($description);
330 }
And now, all my stuff are ouput in utf-8.
Maybe it can help for a future utf support?
Regards
C.
--
Jeanneret Internux cjeanneret@internux.ch
Av. des Alpes 123 +41 78 748 03 02
1814 La Tour-de-Peilz +41 21 550 02 09
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon Apr 7 06:26:25 2008