Hello Saad! Have you tried http://tagunov.tripod.com/i18n/view.html ? (The whole article is at http://tagunov.tripod.com/i18n/i18n.html, but I have been to hash there about certain things)
If yes, is the Content-Type header containing the correct charset? If yes, you've done all you can. BTW it's a good idea to include <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> but only because the user may saved the page to file, and when browsing the page from file the meta will help. SS> Thank you for your email. SS> Browser: Internet Explorer Hmm.. What version? SS> App. Server: IBM WebSphere I've tested it a bit and there seemed to be no problem with setting charset from a jsp in this way in WebSphere App Server 4.0 SS> I think the browser configuration is OK. Because it displays the fonts for SS> windows-1256 charset. That's great! Just got the idea: what is your trouble? That when you go to the View->Encoding menu item you see something wrong? I'm not an expert on IE, but this may be just the default setting. Again all you can and have to do is make sure that the Content-Type header looks like this: Content-Type: text/html; charset=windows-1256 (You may find ways to make sure it is this way or not in my article) If it is this way, you've satisfied the Internet standards. Dot. The next thing you have to worry is if browsers dysplay your page okay. It seems they do. I believe there is nothing more to worry. (It would be a problem f.e. to get ??? instead of your text, that's what the server will send if it can not encode the chars you output in the encoding you've given it, or if you see mess or rectagular boxes in the browser - this happens if it misuderstands your page) Good luck! SS> Actually, the project I working now is pending becuase of this problem. SS> Best Regards, SS> Saad SS> -----Original Message----- SS> From: Anton Tagunov [mailto:[EMAIL PROTECTED]] SS> Sent: Monday, February 04, 2002 6:07 PM SS> To: Saad Shareef SS> Cc: [EMAIL PROTECTED] SS> Subject: Re: Charset Problem SS> Hello Saad! SS>> Hi, SS>> I have a problem with setting charset in JSP file. SS>> I set it like that: SS>> response.setContentType("text/html;charset=windows-1256"); SS>> but when i run it through the browser it does display the correct SS>> characters, and the browser encoding is ISO. SS>> is there any way to solve it.. SS> What's your browser? SS> What servlet container? SS> Maybe browser misconfiguration. SS> Also see http://tagunov.tripod.com/i18n/view.html SS> and make sure your headers are okay. SS> This way you'll understand if the problem SS> is browser's or servlet containers. SS> - Anton SS> [EMAIL PROTECTED] SS> [EMAIL PROTECTED] SS> __________ SS> ��� ��� ������� �� ������ ���� ����? ������ ��� � ������� - http://www.newhost.ru - Anton [EMAIL PROTECTED] [EMAIL PROTECTED] =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
