Website Share Difficult Conversion Solution

zhaozj2021-02-08  225

Website Share Difficult Conversion Solution

Xu Changyou

Due to historical reasons, mainland China uses GBK's internal code, and Taiwan, Hong Kong and some overseas Chinese people use traditional Chinese BIG5 code. Therefore, many websites have simultaneous version, the most original method is to do two sets of websites, this method is expensive, there is also maintenance difficulties, difficult to guarantee the synchronization of information and mutual inquiry, especially for big websites, Just saying CCTV.com.cn, so much content, big update is large, it is impossible to use this original method, so CCTV seems to have purchased the website is not known, can be converted in real time! See n online Many of a certain simple way XX version, in fact, thinking, not very difficult! Friends who have used proxy servers will definitely think that if you convert the internal code through the proxy server, you can complete such a website and real-time dynamically converted! Considering that now the Web server uses Apache, run different servers, if you use a cross-platform Java implementation, it is the best choice! This can be run in most common operating systems such as NT, Linux, UNIX, Solaris. Java is ideal for writing service devices. In this way, the website only needs to have a version (Simplified or Traditional). When the user accesses, the system converts real-time into the client browser, which is converted to the client side to the client. At the same time, it also converts the data submitted to the server. The procedures and databases of the original website must only process a built-in, do not change the original programs and databases, while the services of the website (such as queries, etc.) can be Suitable, eliminate the synchronization and other processing problems of the two internal code information, if it is the Simplified version of the website, when using the system, the customer will automatically convert to Simplified words when entering the traditional Chinese submission form. The original program processing can be done two-way! Key Solving Problems: 1. Implement GB <-> BIG5 Code Conversion 2. Multithreading Server can convert content to text classes through multi-threaded servers to content conversions for text classes, of course, if only simple internal code conversion, effects Not necessarily good, because the reason for habits, many words have a difference, such as: information and information, bytes and bit groups ..., transfer to the client browser after conversion, get the website is easy We only process HTML (including CGI, JSP, ASP, PHP, JS, CSS, etc.) text content, the picture, and other types of files (such as pictures), of course, there is nothing necessary to convert. Java writes a multi-threaded server this will not be difficult!

Said so much, I want you to complete a website, I don't think there is much difficulty!

转载请注明原文地址:https://www.9cbs.com/read-2716.html

New Post(0)