5/12/2010

Đọc dữ liệu unicode khi người dùng gửi form


String tmp = request.getParameter("txtHoTen").trim();
String myString = new String( tmp.getBytes("iso-8859-1"), "UTF-8" ) );
// Biến myString sẽ hiển thị được Unicode

No comments:

Post a Comment

The 0/1 Knapsack Problem - Dynamic Programming

 References: https://www.youtube.com/watch?v=EH6h7WA7sDw  Class Item class Item { private $_weight; private $_value; public functi...