Analysis of Chinese Characters Submission in WML Input Box

xiaoxiao2021-03-06  63

After entering Chinese characters in the WML input box, there is always a problem that the code is available. After several tries to search and search the resources, I have not found a perfect solution, I have integrated the currently mainly used methods. Take the program 1: Use UTF-8 encoding in the page, add the eNCoding = "UTF-8" server on the head, use String Para = New String ("content"). GetBytes ("ISO-8859-1 ")," GB2312 "); Test, Opera, M3gate, Nokia6610, Motoe365 is normal. NOKIA 7650, NOKIA6600 shows that Hemma will use the PARA to view garbled 3F. Solution 2: Add a charset = "GB2312" server side in the POST attribute in the page, also use the same String mode. After testing Nokia 7650, Nokia6600 still shows garbled, without any effect. Summary: This problem is related to the browser's encoding method, and the Nokia6600 is a coding method that can be manually changed, but it is found that there is no change, is it true? It is worthy of doubt. Finally, I decided to add a hidden domain when POST. The server side is first judged by the hidden domain passing. After the transcodation of different ways, the browser encoding method, then use the successful transcoding method to transfer the data that is truly required to pass, will This transcoding method and the useERAGENT are stored in the database. Nokia7650 I have not solved it, I don't know which hife is tricky. Expect. . .

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

New Post(0)