How to set character encoding in servlet
===

I am sending plain text to a servlet using jquery ajax POST.
In my servlet i am setting the request character encoding like this :

    request.setCharacterEncoding("UTF-8");

and after that i am saving that text in database.

Now in another servlet i want to response the text stored in DB ...
All the things are working fine.i can see the text on browser window when i call servlet without any problem..

but when i save that file and try to open it in notepad(windows) , i got some characters missing  and displayed as a small rectangular box. however the text file looks fine in other editors like `edit+ and notepad++`

I tried this with no success..

    response.setContentType("text/plain; charset=utf-8");
    response.setCharacterEncoding("UTF-8");

what is wrong in this ?