Baffling unicode wierdness

[prev] [thread] [next] [Date index for 2005/05/18]

From: angie ahl
Subject: Baffling unicode wierdness
Date: 19:39 on 18 May 2005
Hi List

I've been pottering away trying to get utf-8 behaving on my set up and
have nearly got there but then the client phoned up saying that the =A3
symbol was being displayed as a ?

The first page contains several languages and a =A3 sign and all is
displayed fine.

http://perl.wtsbroadcast.com/about/Angies_test_page.html


The second is the same as the first but without all the extra language
stuff. There the =A3 displays as a ?.

http://perl.wtsbroadcast.com/about/Angies_second_test_page.html


Very wierd. Same code generated both pages. To explain the whole set
up would take a *long* time but I wondered if anyone else had seen
this?

=09$v =3D $q->url_param('fieldname');

=09my $decoder =3D Encode::Guess->guess($v);
=09ref($decoder) or warn "Can't guess for $v: $decoder"; # trap error this =
way
=09if (ref($decoder)) {
=09=09my $utf8 =3D $decoder->decode($v) ? $decoder->decode($v) : $v;
=09=09$params{$uarg} =3D $utf8;
=09}
=09else {
=09=09$params{$uarg} =3D decode("utf8", $v) ? decode("utf8", $v) : $v;
=09}


I just can't fathom this.


MP1/Apache 1 on fedora core 2.

Baffling unicode wierdness
angie ahl 19:39 on 18 May 2005

Re: Baffling unicode wierdness
Graeme St.Clair 20:08 on 18 May 2005

Re: Baffling unicode wierdness
angie ahl 20:19 on 18 May 2005

Re: Baffling unicode wierdness
Jay Savage 21:36 on 18 May 2005

Re: Baffling unicode wierdness
Randy Kobes 04:10 on 19 May 2005

Re: Baffling unicode wierdness
angie ahl 14:48 on 19 May 2005

Re: Baffling unicode wierdness
Markus Wichitill 22:30 on 19 May 2005

Re: Baffling unicode wierdness
Markus Wichitill 22:38 on 18 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52