Re: Baffling unicode wierdness

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

From: Randy Kobes
Subject: Re: Baffling unicode wierdness
Date: 04:10 on 19 May 2005
On Wed, 18 May 2005, Jay Savage wrote:

> On 5/18/05, angie ahl <angie.ahl@xxxxx.xxx> wrote:
> > I can confirm that it's happening before the data's gone
> > to the database or anything. I'm getting the params from
> > CGI.pm and then decoding via decode("utf8", $v) The page
> > the params came from is set as utf-8 in the http header
> > and> content type and firefox is believing the page is
> > utf-8.> > It looks as though the browser isn't sending
> > the data as UTF-8 unless> it contains text that has to
> > be. As soon as I add a =80 or some other character that's
> > utf-8 it comes through fine. Checking the params before
> > it's decoded showed the =A3 as I expected to see it after
> > if had been decoded leading me to think the form hasn't
> > been passed as utf-8 . Any clues.....  anyone?

> That sounds about right.  Most (english) browsers default
> to Latin-1even when they say they don't.  Make sure you
> have "enctype" set inthe opening form tag. If it still
> doesn't work, you'll need to figureout (or as the client)
> what the encoding is, and translate itmanipulating the
> layers and/or encodings. But the bottom line is: if you're
> not putting utf-8 in at some point,you won't get utf-8
> out.

For
 http://perl.wtsbroadcast.com/about/Angies_second_test_page.html
if (in Firefox on Win32) I set
   View -> Character Encoding -> Western (Windows-1252)
I get the =A3 displayed.

--=20
best regards,
randy kobes

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