# US 2018/0322102 A1 · Encoded text data management

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0322102 A1
- Document ID: US20180322102A1
- Status: Published application
- Kind: A1
- Application number: 15/952,346
- Filed: 2018-04-13
- Published: 2018-11-08
- Earliest claimed: 2017-05-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Wendy Ping Wen Wang; Hsiao-Yung Chen; Hsiang-Wen Chen; Wen-Ping Chi; Hsin Yu Hsieh
- Web page: https://patentgrep.com/patent/US20180322102A1

## CPC

- G06F 40/126: Character encoding
- H03M 7/70: {Type of the data to be coded, other than image and sound}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

Disclosed aspects relate to encoded text data management using a set of encoded text data types. A first set of bits which indicates a first encoded text data type may be identified. A second set of bits which indicates a first quantitative size of a third set of bits for a first set of text data of the first encoded text data type may be identified. Using both the first set of bits and the second set of bits, an encoded data management operation may be executed with respect to the third set of bits for the first set of text data of the first encoded text data type.

## Claims

### Claim 1

A computer-implemented method of encoded text data management, the method comprising:
identifying a first set of text data of a first text data type;
identifying a second set of text data of a second text data type;
determining a first encoding scheme associated with the first text data type and a second encoding scheme associated with the second text data type; and
executing, by a processor and using both the first encoding scheme and the second encoding scheme, an encoded data management operation with respect to the first set of text data and the second set of text data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first set of text data and the second set of text data are subsets of a single set of text data contained in a document, wherein the first text data type corresponds to a first language, and wherein the second text data type corresponds to a second language.

### Claim 3 (depends on 2)

The method of claim 2, wherein the executing the encoded data management operation includes:
generating a first set of encoded text data by encoding the first set of text data using the first encoding scheme;
generating a second set of encoded text data by encoding the second set of text data using the second encoding scheme; and
generating an encoded document for the single set of text data using the first set of encoded text data and the second set of encoded text data.

### Claim 4 (depends on 3)

The method of claim 3, wherein generating the encoded document comprises:
generating a first set of indicator bits for the first set of encoded text data, the first set of indicator bits identifying the first encoding scheme and a size of the first set of encoded text data;
generating a second set of indicator bits for the second set of encoded text data, the second set of indicator bits identifying the second encoding scheme and a size of the second set of encoded text data; and
combining at least the first set of indicator bits, the first set of encoded text data, the second set of indicator bits, and the second set of encoded text data.

### Claim 5 (depends on 3)

The method of claim 3, the method further comprising:
generating a mapping data structure, wherein the mapping data structure links each language of a plurality of supported languages to a corresponding encoding scheme and set of indicator bits; and
storing the encoded document in a computer memory.

### Claim 6 (depends on 2)

The method of claim 2, wherein the first encoding scheme is associated with the first language and the second encoding scheme is associated with the second language.

### Claim 7 (depends on 2)

The method of claim 2, wherein the document is an encoded document, wherein the first set of text data and the second set of text data are sets of encoded text data, and wherein executing the encoded data management operation includes:
determining that the first set of encoded text data is encoded using the first encoding scheme and that the second set of encoded text data is encoded using the second encoding scheme;
decoding the encoded text document; and
displaying the decoded text document.

### Claim 8 (depends on 7)

The method of claim 7, wherein decoding the encoded text document includes decoding the first set of encoded text data according to the first encoding scheme and decoding the second set of encoded text data according to the second encoding scheme.

### Claim 9 (depends on 7)

The method of claim 7, wherein determining that the first set of encoded text data is encoded using the first encoding scheme and that the second set of encoded text data is encoded using the second encoding scheme includes:
identifying a first set of indicator bits in the encoded document, the first set of indicator bits identifying the first encoding scheme and a number of words N in the first set of encoded text data; and
identifying a second set of indicator bits in the encoded document, the second set of indicator bits identifying the second encoding scheme and a number of words M in the second set of encoded text data.

### Claim 10 (depends on 9)

The method of claim 9, wherein decoding the encoded text document includes:
decoding the first N words that follow the first set of indicator bits in the encoded document according to the first encoding scheme; and
decoding the first M words that follow the second set of indicator bits in the encoded document according to the second encoding scheme.

### Claim 11 (depends on 2)

The method of claim 2, wherein the document is a web page.

### Claim 12 (depends on 2)

The method of claim 2, wherein the first and second encoding schemes are selected from a group consisting of: ASCII, Big5, UTF-8, UTF-16, EUC-KR, Shift_JS, and GB18030.

### Claim 13

A system of encoded text data management, the system comprising:
a memory; and
a processor communicatively coupled to the memory, wherein the processor is configured to perform a method comprising:
identifying a first subset of text data of a first text data type in a set of text data in a document;
identifying a second subset of text data of a second text data type in the set of text data;
determining a first encoding scheme associated with the first text data type and a second encoding scheme associated with the second text data type; and
executing, using both the first encoding scheme and the second encoding scheme, an encoded data management operation with respect to the first subset of text data and the second subset of text data.

### Claim 14 (depends on 13)

The system of claim 13, wherein the executing the encoded data management operation includes:
generating a first set of encoded text data by encoding the first subset of text data using the first encoding scheme;
generating a first set of indicator bits for the first set of encoded text data, the first set of indicator bits identifying the first encoding scheme and a size of the first set of encoded text data;
generating a second set of encoded text data by encoding the second subset of text data using the second encoding scheme;
generating a second set of indicator bits for the second set of encoded text data, the second set of indicator bits identifying the second encoding scheme and a size of the second set of encoded text data; and
combining at least the first set of indicator bits, the first set of encoded text data, the second set of indicator bits, and the second set of encoded text data generate to an encoded document.

### Claim 15 (depends on 13)

The system of claim 13, wherein the method performed by the processor further comprises:
generating a mapping data structure, wherein the mapping data structure links each language of a plurality of supported languages to a corresponding encoding scheme and set of indicator bits.

### Claim 16 (depends on 15)

The system of claim 15, wherein determining the first encoding scheme associated with the first text data type and the second encoding scheme associated with the second text data type includes:
determining that the first text data type indicates that the first subset of text data includes text of a first language;
determining that the second text data type indicates that the second subset of text data includes text of a second language; and
determining that the first encoding scheme is associated with the first language and that the second encoding scheme is associated with the second language using the mapping data structure.

### Claim 17

A computer program product of encoded text data management, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processor to cause the processor to perform a method comprising:
identifying a first subset of text data of a first text data type in a set of text data in a document;
identifying a second subset of text data of a second text data type in the set of text data;
determining a first encoding scheme associated with the first text data type and a second encoding scheme associated with the second text data type; and
executing, using both the first encoding scheme and the second encoding scheme, an encoded data management operation with respect to the first subset of text data and the second subset of text data.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the document is an encoded document, wherein the first subset of text data and the second subset of text data are encoded text data, and wherein executing the encoded data management operation includes:
determining that the first subset of text data is encoded using the first encoding scheme and that the second subset of text data is encoded using the second encoding scheme;
decoding the encoded text document; and
displaying the decoded text document.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the method performed by the processor further comprises:
identifying a first set of indicator bits in the encoded document, the first set of indicator bits identifying the first encoding scheme and a number of words N in the first set of encoded text data; and
identifying a second set of indicator bits in the encoded document, the second set of indicator bits identifying the second encoding scheme and a number of words M in the second set of encoded text data.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein decoding the encoded text document includes:
decoding the first N words that follow the first set of indicator bits in the encoded document according to the first encoding scheme; and
decoding the first M words that follow the second set of indicator bits in the encoded document according to the second encoding scheme.
