JSP + MySQL make simple message board (3)

xiaoxiao2021-03-06  45

Convert.jsp This program main function is to process the conversion of Chinese characters; code: <%! String Convert (String Str) <% - convert the input Chinese into a BYTE data type string, correctly displaying Chinese. -%> {byte newstr [] = new byte [str.Length ()]; for (int i = 0; i -%> {INDEX = 0; while ((index = str.indexof) / N "))! = - 1) Str = str.substring (0, index) "
" Str.Substring (index 1); Return Str;

}%>

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

New Post(0)