Bug 228917

Summary: Manually change the charset of the webpage
Product: [Frameworks and Libraries] kwebkitpart Reporter: LuRan <hephooey_dev>
Component: generalAssignee: webkit-devel
Status: RESOLVED FIXED    
Severity: wishlist CC: adawit
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description LuRan 2010-02-28 17:42:55 UTC
Version:           svn snapshot (using Devel)
Compiler:          gcc 4.4.3 with gentoo patches
OS:                Linux
Installed from:    Compiled sources

Some webpage does not have the correct charset in the meta data, and I cannot find the menu item to change the charset manually, for khtml there is an option under the Edit menu in Konqueror, a similar function for webkit part would be very useful in some cases.
Comment 1 Dawit Alemayehu 2010-06-22 08:12:33 UTC
Do you mean the ability to change the page encoding ? If so, the option you are talking about is the one under the View menu, "View->Set Encoding" to be precise, right ?
Comment 2 Dawit Alemayehu 2010-06-23 06:50:22 UTC
SVN commit 1141627 by adawit:

- Added the ability to change the default encoding in a web page (View->Set Encoding).

BUG: 228917
BUG: 242370


 M  +2 -1      kwebkitpart.rc  
 M  +18 -0     kwebkitpart_p.cpp  
 M  +2 -0      kwebkitpart_p.h  
 M  +3 -0      settings/webkitsettings.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1141627
Comment 3 LuRan 2010-06-23 14:24:36 UTC
I have tried the new code, but I am not sure if it works correctly. I still get correct display even if I manually set the charset of http://en.wikipeida.org to UTF16, which does not seems to be the right behavior: The page should be converted to garbage in UTF16.