Bug 228917 - Manually change the charset of the webpage
Summary: Manually change the charset of the webpage
Status: RESOLVED FIXED
Alias: None
Product: kwebkitpart
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: webkit-devel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-28 17:42 UTC by LuRan
Modified: 2010-06-23 14:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.