Unlock instant, AI-driven research and patent intelligence for your innovation.

Web page code recognition method and device

A web page coding and identification method technology is applied in the field of web page coding and identification methods and devices, and can solve problems such as garbled characters in browsers

Active Publication Date: 2018-07-24
XIAOMI INC
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem that the browser will display garbled characters when the "charset" field in the web page code is missing or wrongly written in the related art, the embodiment of the present disclosure provides a web page code recognition method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Web page code recognition method and device
  • Web page code recognition method and device
  • Web page code recognition method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0053] The terminals involved in the embodiments of the present disclosure can be mobile phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, Motion Picture Expert Compression Standard Audio Layer 4) Players, Laptops and Desktops,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present disclosure relates to a method and a device for identifying encoding of a web page, which belongs to the field of computer networks. The method includes: loading (101) web page data comprising at least one web page resource; detecting (102) whether the web page resource is a HTML resource and whether it specifies an encoding mode; if the web page resource is a HTML resource and it does not specify the encoding mode, identifying (103) the encoding mode of the HTML resource; and decoding (104) the HTML resource with a decoding mode corresponding to the identified encoding mode. The present disclosure overcomes the problem in the related art that a "charset" field in encoding a web page is missed that results in display of messy codes through a browser, then even if the encoding mode is not specified, the web page resource may be decoded and displayed properly.

Description

technical field [0001] The present disclosure relates to the field of computer networks, in particular to a method and device for identifying codes of webpages. Background technique [0002] With the development of network technology, it is a function most commonly used by users to browse webpages by using a browser in a terminal. [0003] Since the webpage data may be encoded using different encoding methods, the browser first needs to identify the encoding method of the webpage data according to the "charset" field in the webpage data, and then use the decoding method corresponding to the encoding method to decode the webpage data, and then Display web page data. However, due to the increasing popularity of website building and webpage editing technologies, many webpage data developed by technicians will omit or write the "charset" field incorrectly. At this time, the browser uses the default decoding method to decode, and garbled characters may be displayed . Contents...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/957
Inventor 左景龙范金松田凡
Owner XIAOMI INC