> Hi all.
> Could anyone tell me, where am I wrong here:
>
> I try convert output default content to Cp1251 using the next
> PrintWriter out = new PrintWriter(
> new OutputStreamWriter(res.getOutputStream(),
> "Cp1251"),
> true);
> where res is HttpServletResponse.
>
Try the following
res.setContentType("text/html; charset=Cp1251");
then
PrintWriter out = newPrintWriter(res.getOutputStream());
Hope this helps
Andy Bailey
PS I couldn't find Cp1251 as a charset for cyrrillic so you could also try
ISO-8859-5 or KOI8-R
as char sets if Cp1251 doesn't work
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html