Re: HTTP::Request::Common::POST and UTF-8



Alan J. Flavell wrote:

When I look at $self->query(), all UTF-8 chars seem to have
been converted to +. This looks bizarre as it's only doing a join.


My hunch is that they've been offered to a routine that can only escape the characters 0-255.

AFAICS this isn't the case, but I may be wrong.

For what it's worth, the following regex on line 16 of package
URI::_query seems to be causing the problem.

$q =~ s/([^$URI::uric])/$URI::Escape::escapes{$1}/go;

I've no idea what's going on exactly but it looks to me
like the escaping is occuring twice for some reason, with
the UTF8 intact the first time, but destroyed the second time,
after passing through the substitution above.

Steve Collyer

.



Relevant Pages

  • Re: Please help me in congratulating KingAbiu
    ... > Its the first time that I ever won my division too, ... > 3rd match - the brownbelt dude. ... > the mat to escape, and it was like a crocodile death-roll, but I ... > phlegm-swallowing wreck inbetween fights, ...
    (rec.martial-arts)
  • Re: Form Refresh problem
    ... (remove nothere from the email address if mailing direct) ... The routine then appears to run and exit correctly. ... > listbox is empty of text. ... > displays correctly, but again, just for the first time. ...
    (microsoft.public.excel.programming)
  • Re: ActiveSync
    ... Thanks Chris...this is the first time I have used anything from the ... OpenNETCF and I am IMPRESSED...my thanks to those souls who put this code ... I am trying to implement a routine to handle the RAPIDisconnected event so I ... Glyn ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: UK - FATHER CANCELS CONTACT REGULARLY AT SHORT NOTICE
    ... routine and gets highly distressed and upset when things don't happen ... She doesn't need this kind of uncertaintity in her life. ... He knew when he cancelled the first time that he would not be having ...
    (uk.legal)
  • Re: DLowe Dirt Dished
    ... > is nothing I hate worse than some idiot who plonks me going back on his ... > escape from a losing argument). ... This isn't the first time you have ...
    (alt.sports.baseball.bos-redsox)