plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
no utf-8 in proxied sites  (#2790)
Issue

Problem:

-Create HttpProxy

-Proxy German site that has charset=ISO-8859-1 (in http header)

-the charset of my site changes to the above value

-this breaks my german umlauts  

Solution Summary
Comments
preaction
0
2/2/2007 1:30 pm

This seems to be a simple fix: use HTTP::Message->decoded_content in place of $var{content} = $response->content; on line 368 of WebGUI/Asset/Wobject/HttpProxy.pm.

This should convert any weird character encodings into Perl's Unicode representations, which should fix it.

I, of course, don't know a good way to reproduce this, so if you could make the following change:

Line 369 of WebGUI/Asset/Wobject/HttpProxy.pm
$var{content} = $response->content;

-- Should instead be 

$var{content} = $response->decoded_content || $response->content; 

And then if you restart apache, clear your cache, and test, it should work.

Let me know the results.

If I get the appropriate approval, this may be added to 7.3.9. 

preaction
0
2/2/2007 2:24 pm
Closing this until user replies, as per
cap10morgan
0
3/13/2008 4:27 pm

I ran into this bug too (in WebGUI 7.4.27), but in my case it seemed to be that the HTTPProxy.pm module wasn't setting the Content-Type header like the rest of WebGUI does. So it was falling back on Apache's default, which was ISO-8859-1 in my case.

When I changed my Apache default charset to UTF-8, all was well. I needed to make that change anyway, so I'm all set. But it seems like there's still a bug here. 

Graham
0
3/18/2008 10:45 am

I don't have a good way to test this either, but I'm making the change Doug mentioned as it is the correct behavior.

Could you please test this in the next release or describe fully a way to test this?

Details
Ticket Status Closed  
Rating0.0 
Submitted Byguiuser 
Date Submitted2006-11-30 
Assigned To unassigned  
Date Assigned2010-09-02 
Assigned By 
Severity Cosmetic (misspelling, formatting problems)  
What's the bug in?  
WebGUI / WRE Version 7.2.3  
URLbugs/tracker/no-utf-8-in-proxied-sites
Keywords
Ticket History
© 2010 Plain Black Corporation | All Rights Reserved