Method and device for identifying encoding of web page
AssigneeXiaomi Inc.
InventorsJinglong ZUO, Jinsong FAN, Fan TIAN
Life of this patent
Estimating the term…
Abstract
A method for a device to identify encoding of a web page, includes: loading web page data including a web page resource; detecting whether the web page resource is a HyperText Markup Language (HTML) resource and whether the web page resource specifies an encoding mode; if the web page resource is an HTML resource and the web page resource does not specify an encoding mode, identifying the encoding mode of the HTML resource; and decoding the HTML resource with a decoding mode corresponding to the identified encoding mode.
Claims18
A method for a device to identify encoding of a web page, comprising:
- loading web page data including a web page resource;
- detecting whether the web page resource is a HyperText Markup Language (HTML) resource and whether the web page resource specifies an encoding mode;
- if the web page resource is an HTML resource and the web page resource does not specify an encoding mode, identifying the encoding mode of the HTML resource;
- and
- decoding the HTML resource with a decoding mode corresponding to the identified encoding mode.
A device, comprising:
- a processor;
- and
- a memory for storing instructions executable by the processor,
- wherein the processor is configured to:
- load web page data including a web page resource;
- detect whether the web page resource is a HyperText Markup Language (HTML) resource and whether the web page resource specifies an encoding mode;
- if the web page resource is an HTML resource and the web page resource does not specify an encoding mode, identify the encoding mode of the HTML resource, and
- decode the HTML resource with a decoding mode corresponding to the identified encoding mode.
A non-transitory storage medium having stored therein instructions that, when executed by one or more processors of a device, cause the device to perform a method for identifying encoding of a web page, the method comprising:
- loading web page data including a web page resource;
- detecting whether the web page resource is a HyperText Markup Language (HTML) resource and whether the web page resource specifies an encoding mode;
- if the web page resource is an HTML resource and the web page resource does not specify an encoding mode, identifying the encoding mode of the HTML resource;
- and
- decoding the HTML resource with a decoding mode corresponding to the identified encoding mode.
Dependencies are inferred from the claim text.