Re: Baffling unicode wierdness

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

From: Markus Wichitill
Subject: Re: Baffling unicode wierdness
Date: 22:38 on 18 May 2005
angie ahl wrote:
> 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 € or some other
> character that's utf-8 it comes through fine.

I've never seen any browser send anything but UTF-8 if the page was marked 
as UTF-8.

>>        my $decoder = Encode::Guess->guess($v);

Try to get rid of Encode::Guess, just use Encode::decode_utf8() or 
utf8::decode(). Guessing isn't necessary for normal browser input, and can 
only add problems by mis-guessing.

Dealing with UTF-8-flagged strings in Perl can be very complicated and 
error-prone, but in my experience, it works when handled correctly.

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