I\'m creating a unit test to try out the servlet I just created.
@Test
public void test() throws ParseException, IOException {
HttpClient client = new Defaul
Sorry for the stupid question, just solved it by adding the utf-8 format.
post.setEntity(new UrlEncodedFormEntity(nameValuePairs, "utf-8"));
Creating a UrlEncodedFormEntity without passing the format will use DEFAULT_CONTENT_CHARSET
which is ISO-8859-1
Which baffles me... what's causing it to throw NullPointerException
?