Baffling unicode wierdness
[prev]
[thread]
[next]
[Date index for 2005/05/18]
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
|