A file encoding format intelligent conversion method, system and medium

By analyzing the file encoding format and establishing conversion rules in the big data fusion development system, monitoring and adjusting the conversion process in real time, the problem of inaccurate and poor security in the existing system is solved, and efficient and secure file format conversion is achieved.

CN118313353BActive Publication Date: 2025-03-21北京中科昊芯科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410446384.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2025-03-21
Estimated Expiration
2044-04-15

AI Technical Summary

Technical Problem

The existing big data fusion development system lacks file format conversion function, resulting in invalid data when imported into the database. The data conversion process is complex and time-consuming, making it difficult to ensure data security and conversion accuracy.

Method used

By analyzing the encoding format of the file that needs to be converted, establish matching conversion rules, perform format conversion, and monitor the conversion status in real time to determine whether there are abnormalities. If it occurs, analyze the cause and adjust the conversion method to ensure that the converted file format is correct.

Benefits of technology

It improves the accuracy of file format conversion, avoids the occurrence of garbled code and errors, shortens the conversion time, and enhances data security and conversion efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118313353B_ABST
    Figure CN118313353B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, system and medium for intelligent conversion of file encoding formats, the method comprising: establishing conversion rules based on the encoding format of the file to be converted and the encoding format after conversion; performing format conversion on the file to be converted based on the conversion rules, and obtaining real-time conversion status information; judging whether an abnormality occurs during the conversion process based on the conversion status information; if an abnormality occurs, analyzing the cause of the abnormality, and adjusting the conversion method according to the cause of the abnormality; if there is no abnormality, generating a converted text, saving the converted text to a terminal, and establishing a matching conversion rule by analyzing the encoding format of the file to be converted, to ensure that the converted encoding format meets the requirements, does not have garbled characters or errors, and improves the conversion accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of format conversion, and in particular to a method, system and medium for intelligent conversion of file encoding formats. Background Art

[0002] In the face of data from various sources and types, data access is needed to integrate these scattered data together and incorporate them into a unified big data platform. From the perspective of data type, data access mainly includes access to structured data (database), access to log data and access to files. Data in different formats cannot be imported into the database without conversion, and cannot be used subsequently. In the existing big data fusion development system, this function is not implemented. If users import data with incorrect formats, invalid data will appear in the database. At the same time, data format conversion also faces the following problems: first, data security, that is, how to ensure that the existing data can be completely saved in the new file during the conversion process. The conversion process is relatively complicated, and there may be many emergencies that threaten data security; second, the system data files with long running time are very large, and the time required for conversion is also long; finally, the data that users usually import into the database is a large amount of text, which also increases the difficulty of data conversion. For the above problems, effective technical solutions are urgently needed. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a method, system and medium for intelligent conversion of file encoding formats, by analyzing the encoding format of the file to be converted to establish matching conversion rules, to ensure that the converted encoding format meets the requirements, without garbled characters or errors, and to improve the accuracy of the conversion.

[0004] The embodiment of the present application also provides a method for intelligent conversion of file encoding formats, including:

[0005] Establishing conversion rules based on the encoding format of the file to be converted and the encoding format after conversion;

[0006] Convert the format of the files to be converted based on the conversion rules and obtain real-time conversion status information;

[0007] Determine whether an abnormality occurs during the conversion process based on the conversion status information;

[0008] If an abnormality occurs, analyze the cause of the abnormality and adjust the conversion method according to the cause of the abnormality;

[0009] If there is no abnormality, the converted text is generated and saved to the terminal.

[0010] Optionally, in the intelligent conversion method of the file encoding format described in the embodiment of the present application, a conversion rule is established based on the encoding format of the file to be converted and the encoding format after conversion, specifically including:

[0011] Obtain the project name and attribute information, and select the file to be converted based on the project name and attribute information;

[0012] Get the suffix information of the file to be converted and analyze the encoding format of the file to be converted;

[0013] Obtaining the suffix information of the converted file, comparing the suffix information of the file to be converted with the suffix information of the converted file, and obtaining the associated information and the difference information;

[0014] Conversion rules are established based on the association information and difference information.

[0015] Optionally, in the intelligent conversion method of the file encoding format described in the embodiment of the present application, before performing format conversion on the file to be converted based on the conversion rule, the method further includes:

[0016] Obtain the files that need to be converted, and analyze the number of encoding formats of the files that need to be converted;

[0017] According to the number of encoding formats, the files to be converted are divided into different encoding formats to obtain corresponding sub-files;

[0018] Different sub-files correspond to different encoding formats. All sub-files are backed up separately according to the encoding formats to obtain the same number of backup files as the number of encoding formats.

[0019] Optionally, in the intelligent conversion method of the file encoding format described in the embodiment of the present application, the format of the file to be converted is converted based on the conversion rule, and the real-time conversion status information is obtained, which specifically includes:

[0020] Obtain conversion rules, convert the encoding format of the files to be converted according to the conversion rules, and analyze the encoding format error rate in real time;

[0021] Analyze the file content change rate during format conversion based on the encoding format error rate;

[0022] The conversion status data is analyzed based on the file content change rate to obtain real-time conversion status information.

[0023] Optionally, in the intelligent conversion method of the file encoding format described in the embodiment of the present application, judging whether an abnormality occurs during the conversion process based on the conversion status information specifically includes:

[0024] Acquire conversion state information, compare the conversion state information with preset state information, and obtain a state deviation rate;

[0025] Determining whether the state deviation rate is greater than or equal to a set state deviation rate threshold;

[0026] If it is greater than or equal to, it is determined that garbled characters appear in the conversion process, and the manual conversion rule is switched to perform secondary conversion based on the position of the garbled characters;

[0027] If it is less than, the conversion process is judged to be normal.

[0028] Optionally, in the intelligent conversion method of the file encoding format described in the embodiment of the present application, if an exception occurs, the cause of the exception is analyzed, and the conversion method is adjusted according to the cause of the exception, specifically including:

[0029] If the conversion status information is abnormal, abnormal data is generated;

[0030] Analyze abnormal nodes and abnormal variables in abnormal data based on expert database;

[0031] Obtain the abnormal cause based on the abnormal nodes and abnormal variables, and correct the abnormal cause based on the expert database to obtain the correction strategy;

[0032] Adjust the conversion method based on the correction strategy.

[0033] In a second aspect, an embodiment of the present application provides a system for intelligent conversion of file encoding formats, the system comprising: a memory and a processor, the memory comprising a program of an intelligent conversion method of a file encoding format, and the program of the intelligent conversion method of a file encoding format is executed by the processor to implement the following steps:

[0034] Establishing conversion rules based on the encoding format of the file to be converted and the encoding format after conversion;

[0035] Convert the format of the files to be converted based on the conversion rules and obtain real-time conversion status information;

[0036] Determine whether an abnormality occurs during the conversion process based on the conversion status information;

[0037] If an abnormality occurs, analyze the cause of the abnormality and adjust the conversion method according to the cause of the abnormality;

[0038] If there is no abnormality, the converted text is generated and saved to the terminal.

[0039] Optionally, in the intelligent conversion system of the file encoding format described in the embodiment of the present application, a conversion rule is established based on the encoding format of the file to be converted and the encoding format after conversion, specifically including:

[0040] Obtain the project name and attribute information, and select the file to be converted based on the project name and attribute information;

[0041] Get the suffix information of the file to be converted and analyze the encoding format of the file to be converted;

[0042] Obtaining the suffix information of the converted file, comparing the suffix information of the file to be converted with the suffix information of the converted file, and obtaining the associated information and the difference information;

[0043] Conversion rules are established based on the association information and difference information.

[0044] Optionally, in the intelligent conversion system of the file encoding format described in the embodiment of the present application, before performing format conversion on the file to be converted based on the conversion rule, the system further includes:

[0045] Obtain the files that need to be converted, and analyze the number of encoding formats of the files that need to be converted;

[0046] According to the number of encoding formats, the files to be converted are divided into different encoding formats to obtain corresponding sub-files;

[0047] Different sub-files correspond to different encoding formats. All sub-files are backed up separately according to the encoding formats to obtain the same number of backup files as the number of encoding formats.

[0048] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a program for an intelligent conversion method of a file encoding format. When the program for the intelligent conversion method of a file encoding format is executed by a processor, the steps of the intelligent conversion method of a file encoding format as described in any one of the above items are implemented.

[0049] As can be seen from the above, an intelligent conversion method, system and medium for a file encoding format provided in an embodiment of the present application establish conversion rules based on the encoding format of the file to be converted and the encoding format after conversion; convert the format of the file to be converted based on the conversion rules, and obtain real-time conversion status information; determine whether an abnormality occurs during the conversion process based on the conversion status information; if an abnormality occurs, analyze the cause of the abnormality, and adjust the conversion method according to the cause of the abnormality; if there is no abnormality, generate the converted text, save the converted text to the terminal, and establish a matching conversion rule by analyzing the encoding format of the file to be converted, to ensure that the converted encoding format meets the requirements, does not appear garbled or errors, and improves the conversion accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A flowchart of a method for intelligently converting file encoding formats provided in an embodiment of the present application;

[0052] Figure 2 A flow chart of establishing conversion rules for the intelligent conversion method of the file encoding format provided in the embodiment of the present application;

[0053] Figure 3 A flow chart of a backup file acquisition method for the intelligent conversion method of the file encoding format provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0055] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0056] Please refer to Figure 1 , Figure 1 The flowchart of a method for intelligently converting a file encoding format in some embodiments of the present application. The method for intelligently converting a file encoding format is used in a terminal device, and the method for intelligently converting a file encoding format includes the following steps:

[0057] S101, establishing a conversion rule based on the encoding format of the file to be converted and the encoding format after conversion;

[0058] S102, performing format conversion on the file to be converted based on the conversion rule, and obtaining real-time conversion status information;

[0059] S103, judging whether an abnormality occurs during the conversion process based on the conversion status information;

[0060] S104, if an abnormality occurs, analyze the cause of the abnormality and adjust the conversion method according to the cause of the abnormality;

[0061] S105: If there is no abnormality, generate the converted text and save the converted text to the terminal.

[0062] It should be noted that you need to select the target project, obtain the project properties, and add conversion rules. The encoding format is analyzed according to the suffix of the file to be converted. The conversion can be paused or stopped at any time during the conversion process. The real-time conversion status is analyzed to determine whether there is an abnormality, and the conversion method is dynamically adjusted to ensure that different target projects correspond to different conversion rules, thereby improving conversion flexibility.

[0063] Please refer to Figure 2 , Figure 2 The flowchart of establishing conversion rules of a method for intelligently converting a file encoding format in some embodiments of the present application is as follows. According to an embodiment of the present invention, a conversion rule is established based on the encoding format of the file to be converted and the encoding format after conversion, specifically including:

[0064] S201, obtaining a project name and attribute information, and selecting a file to be converted based on the project name and attribute information;

[0065] S202, obtaining suffix information of the file to be converted, and analyzing the encoding format of the file to be converted;

[0066] S203, obtaining suffix information of the converted file, comparing the suffix information of the file to be converted with the suffix information of the converted file, and obtaining association information and difference information;

[0067] S204: Establish a conversion rule based on the association information and the difference information.

[0068] It should be noted that the conversion rules are established by analyzing the suffix differences and associated information between the file to be converted and the converted file, so as to ensure that there will be no large deviation in the converted file during the conversion process.

[0069] Please refer to Figure 3 , Figure 3 The flowchart of the backup file acquisition method of the intelligent conversion method of the file encoding format in some embodiments of the present application is as follows. According to the embodiment of the present invention, before the format conversion of the file to be converted is performed based on the conversion rule, it also includes:

[0070] S301, obtaining files to be converted, and analyzing the number of encoding formats of the files to be converted;

[0071] S302, dividing the file to be converted into different encoding formats according to the number of encoding formats to obtain corresponding sub-files;

[0072] S303, different sub-files correspond to different encoding formats, and all sub-files are backed up separately according to the encoding formats to obtain backup files of the same number as the number of encoding formats.

[0073] It should be noted that the files will be transcoded during the conversion process. Please back up the transcoded source files first. Because the file encoding format may not be recognized when reading the file encoding format for conversion (a file may have multiple encoding formats and some content cannot be converted), the files that cannot be converted must be manually transcoded.

[0074] According to an embodiment of the present invention, format conversion is performed on a file to be converted based on a conversion rule, and real-time conversion status information is obtained, specifically including:

[0075] Obtain conversion rules, convert the encoding format of the files to be converted according to the conversion rules, and analyze the encoding format error rate in real time;

[0076] Analyze the file content change rate during format conversion based on the encoding format error rate;

[0077] The conversion status data is analyzed based on the file content change rate to obtain real-time conversion status information.

[0078] It should be noted that during the encoding format conversion process, the encoding format error rate is analyzed to analyze whether the conversion rules match the current file that needs to be converted. While analyzing the encoding format error rate, the file content change rate during conversion is also analyzed. The file content change rate can be understood as semantic anomalies or semantic differences during conversion, which cause anomalies in the converted file.

[0079] According to an embodiment of the present invention, judging whether an abnormality occurs during the conversion process based on the conversion state information specifically includes:

[0080] Acquire conversion state information, compare the conversion state information with preset state information, and obtain a state deviation rate;

[0081] Determine whether the state deviation rate is greater than or equal to a set state deviation rate threshold;

[0082] If it is greater than or equal to, it is determined that garbled characters appear in the conversion process, and the manual conversion rule is switched to perform secondary conversion based on the position of the garbled characters;

[0083] If it is less than, the conversion process is judged to be normal.

[0084] It should be noted that during the conversion process, by analyzing the real-time conversion status information and judging the abnormal status position and the position where garbled characters appear, the sub-file segmentation position can be accurately located, and when the file needs to be converted, the file can be accurately segmented, and multiple sub-files can be converted separately, thereby improving the conversion accuracy.

[0085] According to an embodiment of the present invention, if an abnormality occurs, the cause of the abnormality is analyzed, and the conversion mode is adjusted according to the cause of the abnormality, which specifically includes:

[0086] If the conversion status information is abnormal, abnormal data is generated;

[0087] Analyze abnormal nodes and abnormal variables in abnormal data based on expert database;

[0088] Obtain the abnormal cause based on the abnormal nodes and abnormal variables, and correct the abnormal cause based on the expert database to obtain the correction strategy;

[0089] Adjust the conversion method based on the correction strategy.

[0090] It should be noted that there are two conversion methods. One is to only support the modification of the file encoding format without encoding the file content, which is convenient for unifying the encoding format of the project; the other is to perform an encoding format conversion for inconsistencies between the file encoding format and the configuration encoding format (garbled characters). During the conversion process, a format conversion will be performed according to the reading file encoding format rules.

[0091] According to an embodiment of the present invention, the method further includes: obtaining a file to be converted, and performing data analysis to obtain analysis information;

[0092] The parsed information is transcoded according to the set encoding format to obtain the transcoding status;

[0093] Analyze whether garbled characters appear based on the transcoding status. If garbled characters appear, perform group transcoding according to the sub-file segmentation method to obtain multiple conversion units.

[0094] After encoding and converting multiple conversion units, they are merged to obtain the final conversion file.

[0095] It should be noted that first, the data of the files to be converted are parsed and transcoded, and the files to be converted are grouped and converted by judging the distribution of garbled codes to improve the conversion accuracy.

[0096] In a second aspect, an embodiment of the present application provides a system for intelligent conversion of file encoding formats, the system comprising: a memory and a processor, the memory comprising a program of an intelligent conversion method of a file encoding format, and when the program of the intelligent conversion method of a file encoding format is executed by the processor, the following steps are implemented:

[0097] Establishing conversion rules based on the encoding format of the file to be converted and the encoding format after conversion;

[0098] Convert the format of the files to be converted based on the conversion rules and obtain real-time conversion status information;

[0099] Determine whether an abnormality occurs during the conversion process based on the conversion status information;

[0100] If an abnormality occurs, analyze the cause of the abnormality and adjust the conversion method according to the cause of the abnormality;

[0101] If there is no abnormality, the converted text is generated and saved to the terminal.

[0102] It should be noted that you need to select the target project, obtain the project properties, and add conversion rules. The encoding format is analyzed according to the suffix of the file to be converted. The conversion can be paused or stopped at any time during the conversion process. The real-time conversion status is analyzed to determine whether there is an abnormality, and the conversion method is dynamically adjusted to ensure that different target projects correspond to different conversion rules, thereby improving conversion flexibility.

[0103] According to an embodiment of the present invention, a conversion rule is established based on the encoding format of the file to be converted and the encoding format after conversion, specifically including:

[0104] Obtain the project name and attribute information, and select the file to be converted based on the project name and attribute information;

[0105] Get the suffix information of the file to be converted and analyze the encoding format of the file to be converted;

[0106] Obtaining the suffix information of the converted file, comparing the suffix information of the file to be converted with the suffix information of the converted file, and obtaining the associated information and the difference information;

[0107] Conversion rules are established based on the association information and difference information.

[0108] It should be noted that the conversion rules are established by analyzing the suffix differences and associated information between the file to be converted and the converted file, so as to ensure that there will be no large deviation in the converted file during the conversion process.

[0109] According to an embodiment of the present invention, before performing format conversion on the file to be converted based on the conversion rule, the method further includes:

[0110] Obtain the files that need to be converted, and analyze the number of encoding formats of the files that need to be converted;

[0111] According to the number of encoding formats, the files to be converted are divided into different encoding formats to obtain corresponding sub-files;

[0112] Different sub-files correspond to different encoding formats. All sub-files are backed up separately according to the encoding formats to obtain the same number of backup files as the number of encoding formats.

[0113] It should be noted that the files will be transcoded during the conversion process. Please back up the transcoded source files first. Because the file encoding format may not be recognized when reading the file encoding format for conversion (a file may have multiple encoding formats and some content cannot be converted), the files that cannot be converted must be manually transcoded.

[0114] According to an embodiment of the present invention, format conversion is performed on a file to be converted based on a conversion rule, and real-time conversion status information is obtained, specifically including:

[0115] Obtain conversion rules, convert the encoding format of the files to be converted according to the conversion rules, and analyze the encoding format error rate in real time;

[0116] Analyze the file content change rate during format conversion based on the encoding format error rate;

[0117] The conversion status data is analyzed based on the file content change rate to obtain real-time conversion status information.

[0118] It should be noted that during the encoding format conversion process, the encoding format error rate is analyzed to analyze whether the conversion rules match the current file that needs to be converted. While analyzing the encoding format error rate, the file content change rate during conversion is also analyzed. The file content change rate can be understood as semantic anomalies or semantic differences during conversion, which cause anomalies in the converted file.

[0119] According to an embodiment of the present invention, judging whether an abnormality occurs during the conversion process based on the conversion state information specifically includes:

[0120] Acquire conversion state information, compare the conversion state information with preset state information, and obtain a state deviation rate;

[0121] Determine whether the state deviation rate is greater than or equal to a set state deviation rate threshold;

[0122] If it is greater than or equal to, it is determined that garbled characters appear in the conversion process, and the manual conversion rule is switched to perform secondary conversion based on the position of the garbled characters;

[0123] If it is less than, the conversion process is judged to be normal.

[0124] It should be noted that during the conversion process, by analyzing the real-time conversion status information and judging the abnormal status position and the position where garbled characters appear, the sub-file segmentation position can be accurately located, and when the file needs to be converted, the file can be accurately segmented, and multiple sub-files can be converted separately, thereby improving the conversion accuracy.

[0125] According to an embodiment of the present invention, if an abnormality occurs, the cause of the abnormality is analyzed, and the conversion mode is adjusted according to the cause of the abnormality, which specifically includes:

[0126] If the conversion status information is abnormal, abnormal data is generated;

[0127] Analyze abnormal nodes and abnormal variables in abnormal data based on expert database;

[0128] Obtain the abnormal cause based on the abnormal nodes and abnormal variables, and correct the abnormal cause based on the expert database to obtain the correction strategy;

[0129] Adjust the conversion method based on the correction strategy.

[0130] It should be noted that there are two conversion methods. One is to only support the modification of the file encoding format without encoding the file content, which is convenient for unifying the encoding format of the project; the other is to perform an encoding format conversion for inconsistencies between the file encoding format and the configuration encoding format (garbled characters). During the conversion process, a format conversion will be performed according to the reading file encoding format rules.

[0131] According to an embodiment of the present invention, the method further includes: obtaining a file to be converted, and performing data analysis to obtain analysis information;

[0132] The parsed information is transcoded according to the set encoding format to obtain the transcoding status;

[0133] Analyze whether garbled characters appear based on the transcoding status. If garbled characters appear, perform group transcoding according to the sub-file segmentation method to obtain multiple conversion units.

[0134] After encoding and converting multiple conversion units, they are merged to obtain the final conversion file.

[0135] It should be noted that first, the data of the files to be converted are parsed and transcoded, and the files to be converted are grouped and converted by judging the distribution of garbled codes to improve the conversion accuracy.

[0136] A third aspect of the present invention provides a computer-readable storage medium, which includes a program for an intelligent conversion method for a file encoding format. When the program for the intelligent conversion method for a file encoding format is executed by a processor, the steps of the intelligent conversion method for a file encoding format as described above are implemented.

[0137] The present invention discloses an intelligent conversion method, system and medium for file encoding formats. The method defines a monitoring area, establishes conversion rules based on the encoding formats of files to be converted and the converted encoding formats; performs format conversion on the files to be converted based on the conversion rules, and obtains real-time conversion status information; determines whether an abnormality occurs during the conversion process based on the conversion status information; if an abnormality occurs, analyzes the cause of the abnormality, and adjusts the conversion method according to the cause of the abnormality; if there is no abnormality, generates a converted text, saves the converted text to a terminal, and establishes a matching conversion rule by analyzing the encoding formats of files to be converted, so as to ensure that the converted encoding formats meet the requirements, and no garbled characters or errors occur, thereby improving the conversion accuracy.

[0138] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0139] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0140] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0141] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.

[0142] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A method for intelligent conversion of file encoding formats, characterized in that: include: Establishing conversion rules based on the encoding format of the file to be converted and the encoding format after conversion; Convert the format of the files to be converted based on the conversion rules and obtain real-time conversion status information; Determine whether an abnormality occurs during the conversion process based on the conversion status information; If an abnormality occurs, analyze the cause of the abnormality and adjust the conversion method according to the cause of the abnormality; If there is no abnormality, the converted text is generated and saved to the terminal; Before converting the format of the file to be converted based on the conversion rules, it also includes: Obtain the files that need to be converted, and analyze the number of encoding formats of the files that need to be converted; According to the number of encoding formats, the files to be converted are divided into different encoding formats to obtain corresponding sub-files; different sub-files correspond to different encoding formats, and all sub-files are backed up separately according to the encoding formats to obtain the same number of backup files as the number of encoding formats; If an exception occurs, analyze the cause of the exception and adjust the conversion method according to the cause of the exception, including: If the conversion status information is abnormal, abnormal data is generated; Analyze abnormal nodes and abnormal variables in abnormal data based on expert database; Obtain the abnormal cause based on the abnormal nodes and abnormal variables, and correct the abnormal cause based on the expert database to obtain the correction strategy; Adjust the conversion method based on the correction strategy; It also includes: obtaining the file to be converted, and performing data analysis to obtain analysis information; The parsed information is transcoded according to the set encoding format to obtain the transcoding status; Analyze whether garbled characters appear based on the transcoding status. If garbled characters appear, perform group transcoding according to the sub-file segmentation method to obtain multiple conversion units. After encoding and converting multiple conversion units, they are merged to obtain the final conversion file.

2. The intelligent conversion method of file encoding format according to claim 1, characterized in that: Conversion rules are established based on the encoding format of the file to be converted and the encoding format after conversion, including: Obtain the project name and attribute information, and select the file to be converted based on the project name and attribute information; Get the suffix information of the file to be converted and analyze the encoding format of the file to be converted; Obtaining the suffix information of the converted file, comparing the suffix information of the file to be converted with the suffix information of the converted file, and obtaining the associated information and the difference information; Conversion rules are established based on the association information and difference information.

3. The intelligent conversion method of file encoding format according to claim 1, characterized in that: Convert the format of the files to be converted based on the conversion rules and obtain real-time conversion status information, including: Obtain conversion rules, convert the encoding format of the files to be converted according to the conversion rules, and analyze the encoding format error rate in real time; Analyze the file content change rate during format conversion based on the encoding format error rate; The conversion status data is analyzed based on the file content change rate to obtain real-time conversion status information.

4. The intelligent conversion method of file encoding format according to claim 3 is characterized in that: Based on the conversion status information, determine whether an abnormality occurs during the conversion process, including: Acquire conversion state information, compare the conversion state information with preset state information, and obtain a state deviation rate; determine whether the state deviation rate is greater than or equal to a set state deviation rate threshold; If it is greater than or equal to, it is determined that garbled characters appear in the conversion process, and the manual conversion rule is switched to perform secondary conversion based on the position of the garbled characters; If it is less than, the conversion process is judged to be normal.

5. An intelligent conversion system for file encoding formats, characterized in that: The system includes: a memory and a processor, wherein the memory includes a program of a method for intelligently converting a file encoding format, and when the program of the method for intelligently converting a file encoding format is executed by the processor, the following steps are implemented: Establishing conversion rules based on the encoding format of the file to be converted and the encoding format after conversion; Convert the format of the files to be converted based on the conversion rules and obtain real-time conversion status information; Determine whether an abnormality occurs during the conversion process based on the conversion status information; If an abnormality occurs, analyze the cause of the abnormality and adjust the conversion method according to the cause of the abnormality; If there is no abnormality, the converted text is generated and saved to the terminal; Before converting the format of the file to be converted based on the conversion rules, it also includes: Obtain the files that need to be converted, and analyze the number of encoding formats of the files that need to be converted; According to the number of encoding formats, the files to be converted are divided into different encoding formats to obtain corresponding sub-files; different sub-files correspond to different encoding formats, and all sub-files are backed up separately according to the encoding formats to obtain the same number of backup files as the number of encoding formats; If an exception occurs, analyze the cause of the exception and adjust the conversion method according to the cause of the exception, including: If the conversion status information is abnormal, abnormal data is generated; Analyze abnormal nodes and abnormal variables in abnormal data based on expert database; Obtain the abnormal cause based on the abnormal nodes and abnormal variables, and correct the abnormal cause based on the expert database to obtain the correction strategy; Adjust the conversion method based on the correction strategy; It also includes: obtaining the file to be converted, and performing data analysis to obtain analysis information; The parsed information is transcoded according to the set encoding format to obtain the transcoding status; Analyze whether garbled characters appear based on the transcoding status. If garbled characters appear, perform group transcoding according to the sub-file segmentation method to obtain multiple conversion units. After encoding and converting multiple conversion units, they are merged to obtain the final conversion file.

6. The intelligent conversion system of file encoding format according to claim 5, characterized in that: Conversion rules are established based on the encoding format of the file to be converted and the encoding format after conversion, including: Obtain the project name and attribute information, and select the file to be converted based on the project name and attribute information; Get the suffix information of the file to be converted and analyze the encoding format of the file to be converted; Obtaining the suffix information of the converted file, comparing the suffix information of the file to be converted with the suffix information of the converted file, and obtaining the associated information and the difference information; Conversion rules are established based on the association information and difference information.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a program for the intelligent conversion method of the file encoding format. When the program for the intelligent conversion method of the file encoding format is executed by a processor, the steps of the intelligent conversion method of the file encoding format as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • File combining method and file combining device

    CN102521218A

  • File format conversion method, device and equipment and readable storage medium

    CN116166629A