Bug 12759 - local page loading: FrameView - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)encodingName baseURL:(NSURL *)URL should provid automatic encoding detection
Summary: local page loading: FrameView - (void)loadData:(NSData *)data MIMEType:(NSStr...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-02-12 22:46 PST by Robert Burns
Modified: 2022-09-16 14:53 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Burns 2007-02-12 22:46:22 PST
I don't believe this works now, but setting the eoncding argument to nil or pvoiding a separate method without the enoding would be a nice feature for loading local files as data. Particularly with XHTML files where detection should be more uniform than text files, it would be nice to leave the encoding of loaded data up to WebKit.

Alternate method could be:
- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType baseURL:(NSURL *)URL

or even:
- (void)loadData:(NSData *)data baseURL:(NSURL *)URL

leaving that up to WebKit and some interaction with the OS (UTIs, filename extensions, etc).
Comment 1 Alexey Proskuryakov 2007-02-13 03:11:36 PST
I haven't yet verified if this still doesn't work in TOT, but it sounds like a good idea to make it work if it doesn't. Then, someone at Apple would need to check if this can become an officially documented feature - adding a NeedsRadar keyword.
Comment 2 Robert Burns 2007-02-13 15:21:59 PST
radar at: 4995440
Comment 3 Sam Sneddon [:gsnedders] 2022-09-16 14:53:42 PDT
From that Radar:

> Verify / Not To Be Fixed. Please adopt the Modern WebKit APIs (WKWebVew). If this request is still valid to the Modern WebKit framework API, please file a new Radar.