[go: up one dir, main page]

CN104199812B - Data system and method supporting multiple languages - Google Patents

Data system and method supporting multiple languages Download PDF

Info

Publication number
CN104199812B
CN104199812B CN201410405228.9A CN201410405228A CN104199812B CN 104199812 B CN104199812 B CN 104199812B CN 201410405228 A CN201410405228 A CN 201410405228A CN 104199812 B CN104199812 B CN 104199812B
Authority
CN
China
Prior art keywords
multilingual
service data
data information
response message
language
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410405228.9A
Other languages
Chinese (zh)
Other versions
CN104199812A (en
Inventor
陈林
邹伟力
吴志浩
蔡跃进
罗烨敏
陈思齐
史文
黄海明
林瑞淇
陈柏年
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201410405228.9A priority Critical patent/CN104199812B/en
Publication of CN104199812A publication Critical patent/CN104199812A/en
Application granted granted Critical
Publication of CN104199812B publication Critical patent/CN104199812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Machine Translation (AREA)

Abstract

The invention provides a data system and method supporting multiple languages. The system comprises a front-end system, a front system and a host, wherein the front-end system is used for receiving first service data information from a counter, the first service data information is sent to the host after multi-language switching and identifying and package inputting are conducted, the front system is used for receiving second service data information from a peripheral channel, the second service data information is sent to the host after multi-language switching and identifying and package inputting are conducted, and the host is used for conducting data processing on the received first service data information or the received second service data information and returning a first response message or a second response message. By means of the dual mode of the front-end system and the front system, the problems that a large bank IBM computer supporting the multiple languages can not switch the multiple languages flexibly enough, multi-language switching systems and program versions are complex, and multi-language data operation, storage and processing are lack of support. In the practical application process, popularization is facilitated, labor is saved, and maintenance cost is reduced.

Description

It is a kind of to support multilingual data system and method
Technical field
The present invention relates to data processing field, in particular to a kind of multilingual data system and method are supported.
Background technology
With the overseas extension of banking, bank business scope in overseas and class of business are more and more, substantial amounts of Business datum needs to be processed and stored with different speech encodings.Existing bank main system adopts IBM mainframe mostly Technology, the EBCDIC codings that IBM mainframe is used carry out data processing.And EBCDIC is a kind of closing coding, various access cores The data for feeling concerned about system are not encoded using EBCDIC, using the open coding of such as UTF-8, GBK.Therefore need to enter to accessing data Row multi-language data is changed.But, existing core banking system is not provided enough for the solution of multilingual support Flexible language switches and changes the mechanism, meanwhile, main frame carries out computing, storage to multi-language data and processes to lack to support, no The Various types of data process problem of the existing banking of energy effectively solving.For example, traditional scheme to covering different language regional development more Application system does independent translation, and development and maintenance cost is high, is unfavorable for promoting.And another common scheme is for different and language Changing specific language data, the shortcoming of this mode is the people in different language area to the different language converter of regionl development Can only see local area language, it is impossible to carry out language switching, and system need to dispose many set program versions, and logic is complicated, safeguards into This is big.
It is multi-lingual in order to solve switching underaction of the existing bank data system for the solution of multilingual support Speech converse routine version it is various, main frame to multi-language data computing, storage and process lack support, and with rate of exploitation it is low and The high problem of maintenance cost, therefore, it is badly in need of a kind of supporting multilingual data system and method.
The content of the invention
To solve above-mentioned technical problem, the invention provides a kind of support multilingual data system and method.Do not only have Effect ground is solved in existing system to the switching underaction of multilingual support, version complexity, and to multi-language data computing, Storage and process lack the problem supported.Meanwhile, development time and operation error rate are reduced, greatly reduce and exploit natural resources And maintenance cost.
First aspect according to embodiments of the present invention, there is provided a kind of to support multilingual data system, the system bag Include:
Front end system, for receiving the first service data information from cabinet face, to the first service data information elder generation Carry out multilingual switching identification and transcoding processed, then send to main frame after front end input group bag, and receive the main frame to return The first response message for returning, first response message through front end output unpack and the multilingual identification after send to described Cabinet face;
Front-end system, for receiving the second service data information from peripheral channel, believes second business datum Breath first carries out the multilingual switching identification and transcoding is processed, then sends to the main frame after preposition input group bag, and connects The second response message that the main frame is returned is received, second response message is unpacked and described multilingual through the preposition output Send after identification to the peripheral channel;And
Main frame, it is multilingual for carrying out to first service data information for receiving or second service data information Data processing simultaneously returns first response message or second response message.
Second aspect according to embodiments of the present invention, there is provided a kind of to support multilingual method, it is characterised in that described System includes:
S1, front end system receives the first service data information from cabinet face, advanced to first service data information The multilingual switching identification of row and transcoding are processed, then are sent to main frame after front end input group bag, and the main frame is carried out at data The first response message is returned after reason to the front end system, the front end system carries out front end output to first response message Unpack and send to the cabinet face after the multilingual identification;Or
S2, front-end system receives the second service data information of peripheral channel, advanced to second service data information The row multilingual switching identification and transcoding are processed, then are sent after preposition input group bag to the main frame, and the main frame enters The second response message is returned after row data processing to the front-end system, the front-end system is carried out to second response message Preposition output is unpacked and sent to the peripheral channel after the multilingual identification;And
S3, first service data information or second service data information to receiving is carried out at multi-language data Manage and return first response message or second response message;
Wherein, the multilingual switching identification refers to that user may be selected language category and the language category is carried out online Switching;
The transcoding processes the language category referred to according to selecting, by first service data information or the second industry Business data message is transcoded into EBCDIC codings or UTF-8 codings;
The multi-language data is processed to be included:First service data information or second service data information are turned For EBCDIC codings or UTF-8 codings.
Implement it is provided in an embodiment of the present invention it is a kind of support multilingual data system and method, by adopting front end system With the double-mode of front-end system, with reference to multilingual attribute isolation technics, multi-language data be transcoded into EBCDIC coding techniques with And multilingual bag Dynamic loading technique carries out multilingual support, efficiently solve bank's IBM mainframe and multilingual support is cut Underaction is changed, Multi-language conversion system and program version are various complicated and scarce to multi-language data computing, storage and process The problem of weary support, in actual application, is easy to promote, and saves manpower, reduces maintenance cost.
Description of the drawings
Fig. 1 is a kind of structural representation for supporting multilingual data system of the present invention;
Fig. 2 is the structural representation of front end system described in present system;
Fig. 3 is the structural representation of front-end system described in present system;
Fig. 4 is the structural representation of main frame described in present system;
Fig. 5 is a kind of flow chart for supporting multilingual method of the present invention.
Specific embodiment
To make purpose, technical scheme and the advantage of embodiments of the invention clearer, below in conjunction with accompanying drawing to this It is bright to be described in further detail.
Fig. 1 is a kind of structural representation for supporting multilingual data system of the present invention.Referring to Fig. 1, the system includes:
Front end system 100, for receiving the first service data information from cabinet face, to first service data information First carry out multilingual switching identification and transcoding is processed, then send to main frame 300 after front end input group bag, and receive the master The first response message that machine 300 is returned, first response message is unpacked through front end output and sent out with after the multilingual identification Deliver to the cabinet face;
Front-end system 200, for receiving from peripheral channel (such as:EBS, GMPS and OPICS etc.) the second business datum Information, the multilingual switching identification is first carried out to second service data information and transcoding is processed, then through preposition input Send to the main frame 300 after group bag, and receive the second response message of the return of the main frame 300, second response message Unpack through the preposition output and send to the peripheral channel after the multilingual identification;And
Main frame 300 is more for carrying out to first service data information for receiving or second service data information Language data processes and returns first response message or second response message.
Wherein, the multilingual switching recognizes the user for referring to each locale (such as:Chinese area user, German ground Area user, Russian area user etc.) selection language category can be needed (such as according to oneself:Chinese, German, Russian etc.), and The language category is switched online.Relative to traditional multilingual embodiment, the user in different language area can only see Language switching cannot be carried out to local area language, or is needed to dispose for the system or transducer of multiple language categories, it is of the invention Multilingual switching identification not only can make user select polyglot classification, but also these language categories can be carried out online Switching.During realization, webpage representation is present invention employs with multilingual attribute isolation technics:Before traditional bank teller End system is developed unlike static multilingual transaction page (such as JSP, HTML etc.) technology, trading screen information quilt in the present invention Page resource file (SCR files) preservation is solidified into, this document has set of rule to describe control property, the event of trading screen And the multilingual information of control.And by multilingual attribute isolation technics, each SCR file has some supporting multilingual attributes File is used to preserve multilingual coding.During exploitation, developer draws SCR files by visualization toolkit, and system is automatic Generate corresponding multilingual property file.For example, trading screen one page resource file (SCR files) of correspondence, an English The multilingual configuration text such as property file (as shown in code 2), Chinese property file (as shown in code 3) and Russian property file Part.When system receives user's request, the language parameter that front end system can be sent according to user dynamically page resource file with Different multilingual property files are fitted together, and represent the page during final operation so as to be formed.
Shown in SCR trading screen resource descriptions shape code 1 as mentioned below, wherein field Caption of control TEXT1 The English Title of the field is represented, ChCaption represents the Chinese title of the field, and RsCaption represents Russian of the field Title.Each needs international trading screen resource (SCR), Front End before the corresponding jsp pages are generated, first by institute The attributes extractions such as some Caption, ChCaption, RsCaption out, then by certain rule (UTF-8 encode or UNICODE is encoded) corresponding multilingual property file is stored in, each SCR file, the language of every kind of support corresponded to one Individual property file.Front end system carries out accordingly internationalization process.If desired internationalization process, system are carried out to new category of language Support to define new Caption labels and process.
TEXT1=u0052 u0065 u0063 u006f u0072 u0064 u0020 u0054 u0079 u0070 u0
065\u003a
TEXT5=u0049 u0073 u0073 u0075 u0069 u006e u0067 u0020 u0044 u0061 u0
074\u0065\u003a
TEXT3=u0047 u0072 u006f u0075 u0070 u0020 u004e u006f u002e u003a
TEXT2=u0055 u0073 u0065 u0072 u0020 u0049 u0044 u003a
TEXT4=u0054 u0065 u006d u0070 u006c u0061 u0074 u0065 u0020 u004e u0
06f\u003a
Code 2
TEXT1=u8a18 u9304 u985e u578b uff1a
TEXT5=u4ea4 u6613 u65e5 u671f uff1a
TEXT3=u7d44 u865f uff1a
TEXT2=u7528 u6236 u4ee3 u78bc uff1a
TEXT4=u6a23 u677f u865f u003a
Code 3
The transcoding processes the language category referred to according to selecting, by first service data information or the second industry Business data message is transcoded into EBCDIC codings or UTF-8 codings.Due to currently a popular UTF-8 coded fonts it is the most complete, it is several All of spoken and written languages system is supported, therefore the input and output of front end system 100 have all been used uniformly across UTF-8 (8-bit Unicode Transformation Format) coding.And the speech encoding of business periphery canalization is then and disunity, though So most of periphery canalization employs UTF-8 codings, and still some peripheral systems employ the speech encoding of locality, entering Row switchs to speech encoding before EBCDIC main frame codes, needs first the unification of a variety of speech encodings to be converted to UTF-8 codings.So Afterwards UTF-8 is changed into EBCDIC main frame codes.IBM provides EBCDIC table and is mapped to each ISO GBs.Multilingual character from UTF-8 code conversions are as follows for the fundamental rule of EBCDIC main frame codes:
English:UTF-8-->ASCII-->EBCDIC
Chinese:UTF-8-->GB2312-->EBCDIC
Other national languages:UTF-8-->UNICODE-->ISO international standard codes -->EBCDIC
(wherein, the mutual of the UNICODE and ISO international codes of every kind of language turns have specific algorithm, the such as ISO- of Russian 8859-5 codes need to only increase the head byte of 0040, and conduct is corresponding to generate its by subsequent byte after former byte deducts 160 UNICODE coding).
Additionally, during the realization of transcoding, additionally using following transcoding mode:
(1) mutually turning for (or international code) is encoded using basic algorithms implement UTF-8 codings and UNICODE:
The UTF-8 codings of some language directly can switch to standard code (as Chinese UTF-8 codes can directly lead to by algorithm Cross algorithm and be converted to GB), and the UTF-8 of some language codings then need to first pass through algorithm switch to after UNICODE codings again by Standard code is changed to according to simple contrast relationship.Both underlying algorithms are consistent, and its algorithm realizes that principle can refer to following table:
UTF-8 coding theory of constitution be:If the UTF-8 of character is encoded to (i.e. the ASCII character) of 1 byte length, ten It is 0000~007F that senary coding is interval, then its standard code is consistent with UTF-8 codes, and highest order is 0;If the UTF- of character More than (such as Chinese, the Russian etc.) of 1 byte length, its hexadecimal code is interval, and for 0080~10FFFF, (UTF-8 is compiled 8 codings The maximum byte that code is supported), then such character can see a head byte as and several subsequent bytes are constituted;For UTF-8 The character that multiple bytes are constituted is encoded to, the high position of its byte binary coding is several 1 followed by upper one 0, for example The UTF-8 of the character is encoded to 3 bytes (such as Chinese), then the binary coding of its byte is then 1110XXXX, and the word It is 10 that a high position for the subsequent byte of symbol is unified, such as 10XXXXXX;Remaining numerical digit in character UTF-8 codings, then be the character Standard code (or for the character UNICODE encode).The byte theory of constitution encoded from UTF-8, character UTF-8 codings And the exchange between standard code (or UNICODE), need first character to be converted into into binary coding, then to the character binary system The operation of correspondence byte is inserted or deleted to the corresponding numerical digit of coding, so as to obtain required coding.With Chinese character UTF-8 is encoded and standard code (GB2312) mutually switchs to example:The UTF-8 of Chinese is encoded to 3 bit byte length, and its standard code For 2 bit byte length, so it is 1110XXXX10XXXXXX that the UTF-8 of Chinese character is converted to after binary coding 10XXXXXX, and the GB2312 of Chinese character codings are then XXXXXXXX XXXXXXXX, the binary coding from two kinds of codings can To find out, it is only necessary to insert or delete corresponding numerical digit (1s0 or 10) in corresponding position, it is possible to realize between two kinds of codings Conversion.For Chinese character, what this conversion method drew is encoded to GB (GB2312), can directly pass through code table Search corresponding EBCDIC;Other national speech encodings are encoded to UNICODE codes by what the method drew, by simple Algorithm to be converted to and also corresponding EBCDIC can be gone out by Codebook Lookup after ISO international standard codes.Using the underlying algorithm And do not adopt it is existing prevalence high-level programming language acquiescence transcoding algorithm (as in JAVA getBytes (String, Encoding) function), can effectively prevent in some system environmentss causes because international standard code table (ISO-8859-X) is not complete The possibility of transcoding failure, improves the portability of transcoding function.
(2) intelligentized multilingual character code identification:
The data system of the present invention is the definition for carrying out data structure to transaction data by data dictionary, wherein data class Type is defined as the field of the types such as numeral, date, the amount of money and need not carry out the identification of multilingual character, directly can compile its ASCII Code is converted to EBCDIC main frame codes.And for the field that dtd--data type definition is character type or mixed type, then need to therein Multilingual character is identified, and carries out transcoding using corresponding algorithm.The method that multilingual character is recognized in mixing field It is as follows:
Transaction data is UTF-8 codings, then whether the first place for judging byte binary coding is 0, if 0, then the word Save as ascii character-set, be not required to carry out any process.If the first is 1, need to judge it is co-continuous from first place have n individual 1, then One multilingual character of continuous n byte representation from the byte, if such as byte binary is the first for 110XXXXX, table Show continuous two byte representations, one complete character from the byte, transcoding need to be carried out to the two bytes;
Transaction data is ISO international standard codes (or GB GB2312), then need 16 scale codings to byte to be located Interval is judged, such as to the field containing Chinese character, if byte conversion is to be more than or equal to 0x80 after 16 systems, The byte for Chinese character head byte, and latter one byte is then the trail byte (in GB2312, in of Chinese character Chinese character is represented by doublet), transcoding need to be carried out to the two bytes;
The exchange of transaction data EBCDIC main frames code and ISO international standard codes is fairly simple, can be directly according to byte 16 ary codes search corresponding code table, without the need for particularly individually being recognized to multilingual character.
Due to the EBCDIC main frame codes of Chinese it is more special, be two bytes, therefore transaction data send main frame and master upper When sending under machine, to being all identified added with flag before and after the EBCDIC of Chinese character, then further according to the 16 of byte Ary codes are searched corresponding code table and are changed.
In the present invention, front end system and front-end system respectively have a set of multilingual switching and transcoding mechanism, by using front The double-mode of end system and front-end system, multilingual attribute isolation technics, multi-language data are transcoded into EBCDIC coding techniques, The multilingual process logical centralization of banking system is realized, bank's IBM mainframe is efficiently solved to the switching of multilingual support not It is enough flexible, Multi-language conversion system and program version it is various complicated and multi-language data computing, storage and processing is lacked The problem held, is easy to promote, and saves manpower, reduces maintenance cost.
Fig. 2 is the structural representation of front end system 100 described in present system.Referring to Fig. 2, the front end system 100 Including:
Front end communication module 110, for realizing the front end system with the cabinet face and the main frame by network connection Communication function.The front end communication module 110 can provide HTTP and SNA two kinds of communications protocol, so as to realize user by browsing Device accesses the function with host communication.
Front end page load-on module 120, for recognizing multilingual mark data and carrying out multilingual ONLINE RECOGNITION.The front end Page load-on module 120 can load the different pages and multi-language resource according to the log-on message of user.
Front end page display module 130, for arranging the first service data information described in multilingual Parameter analysis of electrochemical, searches many Language resource assembling represents the multilingual page.The front end page display module 130 can represent front end page, and to the operation of user Response is provided, in order to adapt to, to multilingual support, can also increase the control that field represents length, due in multilingual conversion During, the byte length of different language monocase in UTF-8 codings it is not consistent (if Chinese is 3 byte lengths, and Russian For 2 byte lengths), the function is used to realize that user's its number of characters in input data keeps one with the definition length of data dictionary Cause (byte length may be because of the different and inconsistent of category of language).
Front end logic processing module 140, for according to the needs of transaction business, to first service data information and institute Stating the first response message carries out business logic processing, such as:Check and correction total score account stroke count, data form and rights management etc..
Front end parsing group bag module 150, for being packaged to first service data information according to data dictionary and First response message is parsed.In order to adapt to multilingual support, the module can also increase the form to field Change, by multilingual field length after the transcoding in the field definition length adjustment message of data dictionary.
Front end transcoding module 160, before first service data information after to described group of bag and the parsing First response message carries out multilingual transcoding.The module mainly realizes the transcoding function of multilingual input and output.It is included Function mainly have UTF-8 codings to turn EBCDIC codings, EBCDIC codings turn UTF-8 codings, field format module etc..(1) UTF-8 codings turn EBCDIC codings:Multilingual field in UTF-8 coding messages is searched according to data dictionary, according in message The corresponding dictionary of language form identifier lookup multilingual UTF-8 codings are switched to into corresponding EBCDIC coding, remaining is non-multilingual Field then switchs to EBCDIC codings by ASCII character;(2) EBCDIC codings turn UTF-8 codings:EBCDIC is searched according to data dictionary Multilingual field in coding message, the corresponding dictionary of language form identifier lookup in message encodes multilingual EBCDIC Switch to corresponding UTF-8 codings, remaining non-multi language field then switchs to ASCII character;(3) field format:According to data dictionary Specific length, the mess code that is elongated or producing because certain character there is no correspondence coding being likely to occur after amendment transcoding etc. are asked Topic.
In addition, the front end system 100 can also include:Front end language pack load-on module, for the front end system Language dictionaries and transcoding rule carry out dynamic load.The pattern of ABSTRACTFACTORY is present invention employs, so as to realize can Dynamic load newspeak translation function classification and do not affect the normal operation of system.First, transcoding functional packet provides an interface For developer with reference to the new language conversion functional packet of exploitation, the interface is as follows:
Developer can refer to after the good corresponding new language conversion function class of interface exploitation, under transcoding functional packet can pass through Row method dynamic load:
public static ISwcodecreateSwcodeTool(String lan_name)throws
ClassNotFoundException,InstantiationException,IllegalAccessException
{
Return(ISwcode)Class.forName
("Hi"+lan_name.trim().toUpperCase()+"Swcode").newInstance();
}
And developer only need to configure language parameter in parameter configuration files and correspond to the right of language conversion function class The effect that can reach platform dynamic call according to relation and need not recompilate.Such as:
RUS:HiRUSSwcode
CHS:HiCHSSwcode
JPN:HiJPNSwcode
By using above-mentioned ABSTRACT FACTORY patterns, realizing and the multi-lingual dynamic for mentioning transcoding functional packet being added Carry, make the support of 100 pairs of newly-increased language of front end system more flexible and convenient, solve affects original because increasing language support newly The problem that system is used, it is to avoid the difficulty that data system need to be recompilated when the support of new languages is increased to existing platform.
Fig. 3 is the structural representation of front-end system 200 described in present system.Referring to Fig. 3, the front-end system 200 Including:
Preposition communication module 210, for realizing the front-end system and the peripheral channel and described by network connection The communication function of main frame.The preposition communication module 210 can provide the multiple kinds such as HTTP, TCP/IP, FTP and SNA, realize Peripheral channel is picked out and main frame incoming communication function.
Preposition transcoding module 220, it is multi-lingual for carrying out to second service data information and second response message Speech transcoding.The message sent to front-end system 200 due to each peripheral channel or the coded format of file are not consistent, and preposition system The speech encoding of system 200 is UTF-8 codings, therefore, the multilingual UTF-8 of front-end system transcoding module 200 codings and EBCDIC are compiled Mutually turn outer between code, also need to realize that polyglot encodes (such as GBK, BIG5 etc.) mutually turning and UTF-8 codings between, it is included Function mainly have UTF-8 codings to turn EBCDIC codings, EBCDIC codings turn UTF-8 codings, field format module etc..(1) UTF-8 codings turn EBCDIC codings:Multilingual field in UTF-8 coding messages is searched according to data dictionary, according in message The corresponding dictionary of language form identifier lookup multilingual UTF-8 codings are switched to into corresponding EBCDIC coding, remaining is non-multilingual Field then switchs to EBCDIC codings by ASCII character;(2) EBCDIC codings turn UTF-8 codings:EBCDIC is searched according to data dictionary Multilingual field in coding message, the corresponding dictionary of language form identifier lookup in message encodes multilingual EBCDIC Switch to corresponding UTF-8 codings, remaining non-multi language field then switchs to ASCII character;(3) field format:According to data dictionary Specific length, the mess code that is elongated or producing because certain character there is no correspondence coding being likely to occur after amendment transcoding etc. are asked Topic.
Preposition parsing group bag module 230, for carrying out to second service data information and second response message Parsing and group bag.In order to adapt to multilingual support, the module can also increase the formatting to field, by the word of data dictionary Multilingual field length after transcoding in Duan Dingyi length adjustment messages.
Prefix logic processing module 240, for carrying out to second service data information and second response message Business logic processing, such as:Total score account stroke count, data form and rights management etc..
The front-end system 200 can also include:Preposition language pack load-on module, for the language to the front-end system Dictionary and transcoding rule carry out dynamic load, by using foregoing ABSTRACT FACTORY patterns, realizing to many The dynamic load of language and transcoding functional packet, makes the support of 200 pairs of newly-increased language of front-end system more flexible and convenient, solve because Language need to be increased newly support and affect the problem that uses of original system, it is to avoid it is right that data system is needed when the support of new languages is increased The difficulty that existing platform is recompilated.
Fig. 4 is the structural representation of main frame 300 described in present system.Referring to Fig. 4, the main frame 300 also includes:
Application processing module 310, for carrying out to first service data information or second service data information Data processing.Front end system 100 is communicated with the main frame 300 in the form of transaction data package.Due to the COBOL for adopting (Common Business Oriented Language) program is operated under EBCDIC environment, must made in caller The program name for calling is specified with EBCDIC codings, it is impossible to directly support the transaction request processing data packets of simple UNICODE modes, Therefore request data package uses the volume formula of EBCDIC forms.For different language, need to develop different transaction transcoding programs. Cobol program must pass through before execution binding (BIND) order carries out the binding of application program and data base, and BIND orders are led to Cross coding (CCSID) carry out application data stream coding specify, read-write when can be automatic according to the coding parameter of BIND orders Do code system control and transcoding is processed.When data write, the stream compression of the CCSID specified in binding parameter is changed to unified During character encoding standard (UNICODE) is stored in data base;In digital independent, by the data of UNICODE codings in data base Be converted to CCSID codings and pass to application program.To different language, the CCSID of its EBCDIC is variant, in order to apply Program can be unified, and process simple again, using binding packing parameter:Coding (CCSID) carries out the coding of application data stream and specifies. To different language, using different CCSID Wire Parameters is carried out.
Data memory module 320, for storing to the data message for carrying out the data handling procedure.Multilingual The key held is to carry out data storage using UNICODE, and in the present invention, all data are all compiled in database table using UNICODE Code.Different language contains different DBCS (double-byte character set) characters.In ASCII and EBCDIC Under system, the CCSID of different language is different;Data processing to different language, is loaded using identical mainframe program;It is different The data of language, can deposit under a database subsystem;Under a subsystem of data base, it is only capable of supporting a kind of The code page of EBCDIC;Because a subsystem need to simultaneously support the transaction or process of different language, so, send out in a signal In raw device (DSG), it is also necessary to unified that code page is set;That is:Under a DSG, it is impossible to accomplish:In different data bases Data, to blended data (i.e.:Those fields of DBCS characters may be contained), all it is defined as EBCDIC system but while wants The code page of these EBCDIC is sought, is different to different language.
Operating system zSeries (z/OS) of main frame 300 is in itself EBCDIC codings, is developed on main frame 300 COBOL source program is also EBCDIC codings, and program is run by the coded system of EBCDIC.Therefore, main frame 300 Program for the data that EBCDIC is encoded, directly it can be performed mathematical calculations and charactor comparison etc.;For non-EBCDIC The data of coding, main frame 300 it cannot be performed mathematical calculations and character comparison.For example, for the reception of front end system 100 Whether customer name, needs to carry out blacklist retrieval, judge it in blacklist list;Assume there is a name in blacklist " TOM ", the implementing result of sentence IF customer names=' TOM ' is as follows:
1) front end carries out sending using EBCDIC codings, and the value of customer name is " TOM ", and comparative result returns TRUE;
2) front end carries out sending using non-EBCDIC codings, and the value of customer name is " TOM ", and comparative result returns FALSE.
Data base supports to carry out data storage using the mode of UNICODE, and the application data stream of EBCDIC codings is arrived The data storage of UNICODE codings, by data base multilingual transcoding is completed.
Fig. 5 is a kind of flow chart for supporting multilingual method of the present invention.Referring to Fig. 5, methods described includes following step Suddenly:
S1, front end system receives the first service data information from cabinet face, advanced to first service data information The multilingual switching identification in row front end and transcoding are processed, then are sent to main frame after front end input group bag, and the main frame enters line number According to the first response message is returned after process to the front end system, the front end system carries out front end to first response message Output is unpacked and sent to the cabinet face after the multilingual identification in the front end;Or
S2, front-end system receives the second service data information of peripheral channel, advanced to second service data information The preposition multilingual switching identification of row and transcoding are processed, then are sent after preposition input group bag to the main frame, and the main frame enters The second response message is returned after row data processing to the front-end system, the front-end system is carried out to second response message Preposition output is unpacked and sent to the peripheral channel after the preposition multilingual identification;And
S3, first service data information or second service data information to receiving is carried out at multi-language data Manage and return first response message or second response message;
Wherein, the multilingual switching identification refers to that user may be selected language category and the language category is carried out online Switching;
The transcoding processes the language category referred to according to selecting, by first service data information or the second industry Business data message is transcoded into EBCDIC codings or UTF-8 codings;
The multi-language data is processed to be included:First service data information or second service data information are turned For EBCDIC codings or UTF-8 codings.
Wherein, the multilingual switching identification is primarily referred to as the realization that multilingual coding unification is converted to EBCDIC main frame codes Process, because currently a popular UTF-8 coded fonts are the most complete, almost supports all of spoken and written languages system, therefore front end The input and output of system 100 have all been used uniformly across UTF-8 codings.The speech encoding of business periphery canalization then and disunity, Although most of periphery canalization employs UTF-8 codings, still some peripheral systems employ the speech encoding of locality, Carry out speech encoding to switch to before EBCDIC main frame codes, need first the unification of a variety of speech encodings to be converted to UTF-8 codings.
As can be seen that the multi-language data of main frame is divided into two classes, a class is that transcoding is EBCDIC codings, and another kind of is transcoding For UTF-8 codings, transcoding is that the benefit of EBCDIC codings can be used for retrieval calculating, such as blacklist retrieval.But part Multi-language data is that EBCDIC codings are not supported (such as Japanese), therefore cannot be converted into EBCDIC codings, can be entered with UTF-8 bis- Code storage host processed.The data such as other amount of money, numeral can turn directly to switch to EBCDIC codings in addition to multi-language data.Traditional Scheme just thinks of one of coding sorts, and range of application is not comprehensive enough.
By carrying out multilingual support by the double-mode of front end system and front-end system using said method, not only effectively Solve to the switching underaction of multilingual support in existing bank data system, and to multi-language data computing, deposit Storage and process lack the problem supported.Meanwhile, reduce the development time and operation error rate, greatly reduce exploit natural resources and Maintenance cost.
In embodiments of the present invention, step S1 can be further comprising the steps:
S11, user sends user request information by transaction request front end page, and the front end system is received and loaded not With the page and multi-language resource;
S12, according to the multi-language resource of loading, arranges multilingual parameter, parses the user request information;
S13, to the parsing after the user request information carry out business logic processing, and according to data dictionary group bag After carry out the multilingual transcoding in front end;
S14, the front end system sends the user request information after the multilingual transcoding in the front end to institute Main frame is stated, the main frame carries out being returned after data processing first response message to the front end system;
S15, the front end system carries out the multilingual transcoding in the front end and secondary parsing to first response message;
S16, to the secondary parsing after first response message carry out secondary business logic processing, and search described Multi-language resource, assembles and represents the corresponding multilingual page.
In addition, step S1 also includes:Language dictionaries and transcoding rule to the front end system carry out dynamic load. By using foregoing ABSTRACT FACTORY patterns, so as to realize can dynamic load newspeak translation function classification and The normal operation of system is not affected.
In embodiments of the present invention, step S2 can be further comprising the steps:
S21, the front-end system receives the peripheral solicited message that the peripheral channel sends, and to the periphery request letter Breath carries out being sent to the main frame after preposition multilingual transcoding, parsing, business logic processing and group bag;
S22, the main frame carries out being returned after data processing the second response message to the front-end system;
S23, the front-end system carries out the preposition multilingual transcoding, parsing, business to second response message and patrols Collect to process and organize and send to the peripheral channel after bag.
In addition, step S2 also includes:Language dictionaries and transcoding rule to the front-end system carry out dynamic load, By using foregoing ABSTRACT FACTORY patterns, realizing to the multi-lingual dynamic load for mentioning transcoding functional packet, Make the support of 200 pairs of newly-increased language of front-end system more flexible and convenient, solve affects original system because increasing language support newly The problem that uses of system, it is to avoid the difficulty that data system need to be recompilated when the support of new languages is increased to existing platform.
In embodiments of the present invention, step S3 can be further comprising the steps:
S31, first service data information or second service data information to receiving carries out data processing;
S32, the data message to carrying out the data handling procedure is stored;
S33, returns first response message or second response message.
Wherein, operating system zSeries (z/OS) of main frame is in itself EBCDIC codings, is developed on main frame COBOL source program is also EBCDIC codings, and program is run by the coded system of EBCDIC.Therefore, main frame Program directly can perform mathematical calculations and charactor comparison etc. for the data that EBCDIC is encoded to it;For non-EBCDIC is compiled Code data, main frame it cannot be performed mathematical calculations and character comparison.Data base supports to be carried out using the mode of UNICODE Data storage, the data storage that the application data stream that EBCDIC is encoded is encoded to UNICODE, by data base multilingual turn is completed Code.The main frame not only can simultaneously receive two kinds of different classes of service data informations from sales counter and peripheral channel, also Data message can be stored during data processing, improve Service Data Management level.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by The mode of software combined with hardware platform is realizing, naturally it is also possible to all implemented by hardware.Based on such understanding, this What bright technical scheme contributed to background technology can be embodied in whole or in part in the form of software product, the meter Calculation machine software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that one Platform computer equipment (can be personal computer, server, either network equipment etc.) perform each embodiment of the invention or Method described in some parts of embodiment.
The above disclosed protection for being only the preferred embodiments of the present invention, the present invention can not being limited with this certainly Scope, therefore according to the equivalent variations made to above-described embodiment of teaching of the claims in the present invention, still falling within right of the present invention will Ask in the range of being covered.

Claims (10)

1. it is a kind of to support multilingual data system, it is characterised in that the system includes:
Front end system, for receiving the first service data information from cabinet face, is first carried out to first service data information Multilingual switching identification and transcoding are processed, then are sent to main frame after front end input group bag, and receive what the main frame was returned First response message, first response message is unpacked through front end output and sent to the cabinet after the multilingual identification Face;
Front-end system, for receiving the second service data information from peripheral channel, to the second service data information elder generation Carry out the multilingual switching identification and transcoding is processed, then send to the main frame after preposition input group bag, and receive institute The second response message of main frame return is stated, second response message is unpacked and the multilingual identification through the preposition output After send to the peripheral channel;And
Main frame, for carrying out multi-language data to first service data information for receiving or second service data information Process and return first response message or second response message.
2. system as claimed in claim 1, it is characterised in that the multilingual switching identification and transcoding are processed and included:
The multilingual switching identification refers to that user may be selected language category and the language category is switched online;
The transcoding processes the language category referred to according to selecting, by first service data information or the second business number It is believed that breath is transcoded into EBCDIC codings or UTF-8 codings.
3. system as claimed in claim 1, it is characterised in that the front end system includes:
Front end communication module, for realizing the front end system with the cabinet face and the communication work(of the main frame by network connection Energy;
Front end page load-on module, for recognizing multilingual mark data and carrying out multilingual ONLINE RECOGNITION;
Front end page display module, for arranging the first service data information described in multilingual Parameter analysis of electrochemical, searches multilingual money Source assembling represents the multilingual page;
Front end logic processing module, for according to the needs of transaction business, to first service data information and described first Response message carries out business logic processing;
Front end parsing group bag module, for being packaged to first service data information according to data dictionary and to described One response message is parsed;And
Front end transcoding module, for first service data information after to described group of bag and described first before the parsing Response message carries out multilingual transcoding.
4. system as claimed in claim 1, it is characterised in that the front-end system includes:
Preposition communication module, for realizing the logical of the front-end system and the peripheral channel and the main frame by network connection Communication function;
Preposition transcoding module, for carrying out multilingual transcoding to second service data information and second response message;
Preposition parsing group bag module, for being parsed and group to second service data information and second response message Bag;
Prefix logic processing module, for carrying out service logic to second service data information and second response message Process.
5. system as claimed in claim 3, it is characterised in that the front end system or the front-end system also include:
Language pack load-on module, for entering action to the language dictionaries and transcoding rule of the front end system or the front-end system State is loaded.
6. system as claimed in claim 1, it is characterised in that the main frame also includes:
Application processing module, for carrying out multilingual number to first service data information or second service data information According to process, the multi-language data is processed to be included:First service data information or second service data information are turned For EBCDIC codings or UTF-8 codings;
Data memory module, for storing to the multi-language data.
7. it is a kind of to support multilingual method, it is characterised in that to the method comprising the steps of:
S1, front end system receives the first service data information from cabinet face, first service data information is first carried out many Language switching identification and transcoding are processed, then are sent to main frame after front end input group bag, and the main frame is carried out after data processing The first response message is returned to the front end system, the front end system carries out front end output to first response message and unpacks With send after the multilingual identification to the cabinet face;Or
S2, front-end system receives the second service data information of peripheral channel, and to second service data information institute is first carried out State multilingual switching identification and transcoding is processed, then send after preposition input group bag to the main frame, the main frame enters line number According to the second response message is returned after process to the front-end system, the front-end system carries out preposition to second response message Output is unpacked and sent to the peripheral channel after the multilingual identification;And
S3, first service data information or second service data information to receiving carries out multi-language data and processes simultaneously Return first response message or second response message;
Wherein, the multilingual switching identification refers to that user may be selected language category and the language category is cut online Change;
The transcoding processes the language category referred to according to selecting, by first service data information or the second business number It is believed that breath is transcoded into EBCDIC codings or UTF-8 codings;
The multi-language data is processed to be included:First service data information or second service data information are switched to EBCDIC is encoded or UTF-8 codings.
8. method as claimed in claim 7, it is characterised in that step S1 is further comprising the steps of:
S11, user sends user request information by transaction request front end page, and the front end system receives and load not same page Face and multi-language resource;
S12, according to the multi-language resource of loading, arranges multilingual parameter, parses the user request information;
S13, to the parsing after the user request information carry out business logic processing, it is and laggard according to data dictionary group bag The multilingual transcoding in row front end;
S14, the front end system sends the user request information after the multilingual transcoding in the front end to the master Machine, the main frame carries out being returned after data processing first response message to the front end system;
S15, the front end system carries out the multilingual transcoding in the front end and secondary parsing to first response message;
S16, to the secondary parsing after first response message carry out secondary business logic processing, and search described multi-lingual Speech resource, assembles and represents the corresponding multilingual page.
9. method as claimed in claim 7, it is characterised in that step S2 is further comprising the steps of:
S21, the front-end system receives the peripheral solicited message that the peripheral channel sends, and the peripheral solicited message is entered Send to the main frame after the preposition multilingual transcoding of row, parsing, business logic processing and group bag;
S22, the main frame carries out being returned after data processing the second response message to the front-end system;
S23, the front-end system carries out the preposition multilingual transcoding, parsing to second response message, at service logic Send to the peripheral channel after reason and group bag.
10. method as claimed in claim 7, it is characterised in that step S3 is further comprising the steps of:
S31, first service data information or second service data information to receiving carries out the multi-language data Process, first service data information or second service data information are switched to into EBCDIC codings or UTF-8 codings;
S32, stores to the multi-language data;
S33, returns first response message or second response message.
CN201410405228.9A 2014-08-18 2014-08-18 Data system and method supporting multiple languages Active CN104199812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410405228.9A CN104199812B (en) 2014-08-18 2014-08-18 Data system and method supporting multiple languages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410405228.9A CN104199812B (en) 2014-08-18 2014-08-18 Data system and method supporting multiple languages

Publications (2)

Publication Number Publication Date
CN104199812A CN104199812A (en) 2014-12-10
CN104199812B true CN104199812B (en) 2017-04-26

Family

ID=52085107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410405228.9A Active CN104199812B (en) 2014-08-18 2014-08-18 Data system and method supporting multiple languages

Country Status (1)

Country Link
CN (1) CN104199812B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989179A (en) * 2015-03-06 2016-10-05 北京邮电大学 Financial data processing method and system
CN106569822A (en) * 2016-11-03 2017-04-19 深圳市证通电子股份有限公司 Language matching method and device of WEB system
CN106528535B (en) * 2016-11-14 2019-04-26 北京赛思信安技术股份有限公司 A kind of multi-speech recognition method based on coding and machine learning
CN109102385B (en) * 2018-08-06 2022-02-11 中国建设银行股份有限公司 Financial accounting service parameter management method and system
CN109472034B (en) * 2018-11-02 2022-04-15 深圳壹账通智能科技有限公司 Language conversion method, device, equipment and storage medium based on data partition
CN110941471A (en) * 2019-11-25 2020-03-31 厦门中软海晟信息技术有限公司 Method and device for internationalizing basic data of software system
CN111767260B (en) * 2020-06-15 2025-01-24 中国建设银行股份有限公司 Data synchronization method and system
CN112579235B (en) * 2020-12-16 2024-05-21 平安银行股份有限公司 Method, transcoding center, client, device and medium for internationalization of response data
CN114168246B (en) * 2021-12-01 2023-07-21 北京联创新天科技有限公司 Multilingual switching method, component, medium and equipment under front-end and back-end separation architecture
CN114417896A (en) * 2021-12-10 2022-04-29 中国铁道科学研究院集团有限公司通信信号研究所 International data communication method for dispatching centralized system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987925A (en) * 2006-12-29 2007-06-27 中国建设银行股份有限公司 Complex front platform of financial system and transfering method transaction data
CN101446962A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 Data conversion method, device thereof and data processing system
CN101930582A (en) * 2010-08-06 2010-12-29 中国工商银行股份有限公司 Multilanguage-supporting data conversion equipment and bank transaction system
CN201886520U (en) * 2010-08-06 2011-06-29 中国工商银行股份有限公司 Multi-language supporting data conversion equipment
CN102184095A (en) * 2011-01-30 2011-09-14 广东佳和通信技术有限公司 Chinese character display system and method for converged communication systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987925A (en) * 2006-12-29 2007-06-27 中国建设银行股份有限公司 Complex front platform of financial system and transfering method transaction data
CN101446962A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 Data conversion method, device thereof and data processing system
CN101930582A (en) * 2010-08-06 2010-12-29 中国工商银行股份有限公司 Multilanguage-supporting data conversion equipment and bank transaction system
CN201886520U (en) * 2010-08-06 2011-06-29 中国工商银行股份有限公司 Multi-language supporting data conversion equipment
CN102184095A (en) * 2011-01-30 2011-09-14 广东佳和通信技术有限公司 Chinese character display system and method for converged communication systems

Also Published As

Publication number Publication date
CN104199812A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104199812B (en) Data system and method supporting multiple languages
CN102073490B (en) Method and device for translating database language
US7278100B1 (en) Translating a non-unicode string stored in a constant into unicode, and storing the unicode into the constant
CN107341399B (en) Method and device for evaluating security of code file
EP1678629B1 (en) Extensible framework for handling different mark up language parsers and generators in a computing device
CN108564339A (en) A kind of account management method, device, terminal device and storage medium
CN101526963A (en) Method for identifying web page coding, device and terminal equipment
CN107015948B (en) Method and system for formatting log information
US20010056444A1 (en) Communication terminal device
CN106406844A (en) A method and a device for realizing a communication interaction platform official account menu
CN109413131A (en) A kind of method and device of log parsing
CN111176650A (en) Parser generation method, search method, server, and storage medium
CN113836316A (en) Three-tuple data processing method, training method, device, equipment and medium
CN101470752A (en) Search engine method based on keyword resolution scheduling
CN104994128A (en) Data coding type identifying and transcoding method and device
CN115543996A (en) Message parsing and warehousing method and device
US9208134B2 (en) Methods and systems for tokenizing multilingual textual documents
WO2018226221A1 (en) Context-dependent shared dictionaries
CN111049813A (en) Message assembling method, message analyzing method, message assembling device, message analyzing device and storage medium
CN100511236C (en) Web page coding language automatic identification method and device for embedded type browser
CN101551798A (en) Translating input method and word stock
CN111737288B (en) Search control method, device, terminal device, server and storage medium
CN120045689A (en) Data query method, system, terminal and medium based on large language model
CN120011388A (en) A dynamic conditional construction system based on custom annotations
CN111914513B (en) A method and device for recognizing text in RDP window title

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant