GB2312 Coding IE shows the reason for the question mark after Java processing

xiaoxiao2021-03-06  41

GB2312 encoding IE The reason why the question mark appears after the Java processing, Java processing, the most common problem is that there is some question mark in normal display - many web pages return code is GB2312 but actually returned. GBK encoded characters IE can be displayed normally but GB2312 and GBK in Java are different codes. If GBK is converted to GB2312, if there is no corresponding character, it will appear. - Most Java handles use the following code to process from HTTP stream Bytescharset read by BYTESCHARSET is generally gb2312string text = new string (bytes, charset); -http: //news.sina.com.cn/c/2004-12-19/06075262469.SHTML, such as the observation week GB2312 encoding display normal But in fact, this is GBK to process the above program, which will show it? T-this problem solving is to specify the encoding when generating the String, you can better deal with these small question marks later:) 11:32 2004 -12-20

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

New Post(0)