版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、- 1 -外文原文Java programming technology in Chinese characters and solve the problems ofBased on the Java programming language, Chinese characters, we often encounter the problem of handling and display. Do not know how to
2、see a lot of garbled certainly not our wish to see the effect, how can we let those characters appear correctly? » Java language is the default encoding UNICODE, and we Chinese people usually use the documents and d
3、atabases are based on the GB2312 or BIG5 encoding methods, such as how to properly select Chinese character coding and the correct way to deal with the Chinese character encoding it » This article will start with Ch
4、inese character coding of common sense, the combination of Java programming examples of the above two issues and propose solutions to their programmes.Now the Java programming language has been widely used in the Interne
5、t world, as early as in the development of Sun's Java language, has been taken into account the non-English characters supported. Sun announced the Java Runtime Environment (JRE) on sub itself and the international e
6、dition in English, but only to support the international version of the non-English characters. But in the Java programming language applications, with the support of Chinese characters is not as Java Soft standard speci
7、fications, as claimed in perfect, because the Chinese character set to more than one, and different operating systems on the support of Chinese characters vary Therefore, there will be many and the Chinese character codi
8、ng tackle the problem in our application development in the troubled us. There are many answers on these issues, but are relatively trivial, we can not meet the aspirations of urgency to solve the problem, the Chinese on
9、 the Java system is not more, the paper from the Chinese character coding of common sense, the issue of Java Chinese, we hope to Help solve this problem.Chinese character coding of common senseWe know that English is a g
10、eneral character to that of bytes, the most commonly used method of coding is ASCII. However, a byte can only distinguish 256 characters, and tens of thousands of Chinese characters, so now have to double-byte characters
11、 to that, in order to separate and English characters, each byte of the highest level for a certain, this two-word Day said that up to 64 K grid characters. We often encounter is the encoding GB2312, BIG5, UNICODE, and s
12、o on. Turning to the specific details of encoding, interested readers can access the relevant information. I superficial talk about and we close the GB2312 and UNICODE. GB2312 code, People's Republic of China nationa
13、l standard Chinese characters - 3 -problem, the solution is to compile time to add encoding parameters so that they can and platform-independent. Usage isjavac? Cencoding GBK. “Java byte code -> Virtual Machine ->
14、operating system“, Java runtime environment (JRE)-English and international versions, but only to support the international version of the non-English characters. Java Development Kit (JDK) certainly support the multi-na
15、tional character, but not all computer users have installed the JDK. Many operating system and application software in order to better support Java, are embedded in the international version of the JRE, for their support
16、 of the multinational character provides a convenient. “Operating system -> display device,“ the Chinese characters, the operating system must support and be able to show it. English operating system if not with speci
17、al software applications, it is certainly not able to show that the Chinese. There is also a problem, that is, in the Java programming process, the Chinese characters for the correct coding conversion. For example, Chine
18、se exports to the page when the string, whether you use out.println (string); Or use , must be UNICODE to GBK conversion, or manually or automatically. In JSP 1.0, can be defined character sets out to achieve within the
19、code of automatic conversion. Usage is However, in some versions of JSP and did not provide the output of the character set support (such as JSP 0.92), which require manual coding output, means a lot. The most commonly u
20、sed method isString s1 = request.getParameter(“keyword”);String s2 = new String(s1.getBytes(“ISO-8859-1”),”GBK”);getBytes methods will be used Chinese characters to “ISO-8859-1“ encoding into a byte array, “GBK“ is the t
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 計算機外文翻譯--java編程語言的介紹
- 計算機軟件java編程特點及技術分析
- 計算機專業(yè) java外文翻譯
- 計算機編程類外文翻譯
- 計算機外文翻譯---java技術與ssh框架
- 萬水計算機編程技術與應用系列
- [雙語翻譯]計算機專業(yè)外文翻譯—云計算中的java web部署
- 計算機外文翻譯---問題,解決方案和語義計算
- 計算機軟件開發(fā)中java編程語言的應用分析
- 計算機類外文文獻翻譯---java核心技術
- [雙語翻譯]計算機專業(yè)外文翻譯—云計算中的java web部署(原文)
- 計算機專業(yè)英語java介紹外文翻譯
- [雙語翻譯]計算機專業(yè)外文翻譯—云計算中的java web部署中英全
- [雙語翻譯]--計算機外文翻譯---安全型java servlet的開發(fā)
- 計算機專業(yè)外文翻譯----計算機視覺中的學習
- 計算機專業(yè)外文翻譯--如何解決 sql server 2000 中的連接問題
- 計算機專業(yè)外文翻譯--- 如何解決sql server 2000中的連接問題
- 計算機外文資料翻譯--如何解決 sql server 2000 中的連接問題
- 計算機專業(yè)外文翻譯--計算機
- 計算機軟件java的編程特點與技術研究
評論
0/150
提交評論