display in Hindi language on JSP

982 views
Skip to first unread message

Y3

unread,
Aug 11, 2009, 2:20:25 AM8/11/09
to Bangalore Open Java Users Group- BOJUG
Hello folks,

I'm having jsp page, which on response i want to display text in
Hindi.

I couldn't locate any useful resourse/example, which explains on
displaying in hindi.

anybody knows here, how to accomplish this? or any getting-started-
link will help

Thanks
Yatin

Tushar Joshi

unread,
Aug 11, 2009, 2:29:16 AM8/11/09
to bo...@googlegroups.com
1. Use UTF-8 encoding for JSP page
2. Use Unicode characters for Hindi

with regards
Tushar

==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE
Software Engineer and Senior Project Manager @ Infospectrum India Private Limited, VOC Captain for NetBeans, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://wiki.netbeans.org/VoiceOfCommunity
http://www.jugnagpur.com

Y3

unread,
Aug 11, 2009, 2:56:51 AM8/11/09
to Bangalore Open Java Users Group- BOJUG
1st point abt pageEncoding="ISO-8859-1" insted UTF-8
2nd point i'm not clear.

what are other settings require?

Do i need hindi resourcebundle, native2ascii?

regards,
yatin

Y3

unread,
Aug 11, 2009, 4:37:53 AM8/11/09
to Bangalore Open Java Users Group- BOJUG

I guess, you are asking about this in .jsp file.

<%@ page language="java" contentType="text/html;charset=UTF-8"
pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

if above is correct, then how do i set Local to Hindi?

Regards,
Yatin

Vijayasekar

unread,
Aug 11, 2009, 3:42:45 AM8/11/09
to bo...@googlegroups.com
Hello,

Use UTF8 or DBCS or wat ever encoding is applicable and render it on the page if it one or two lines you can also hard code it in properties file.


Regards,

Vijayasekar. P,
Bangalore, India.
Sent from Bangalore, KA, India

Y3

unread,
Aug 11, 2009, 5:01:00 AM8/11/09
to Bangalore Open Java Users Group- BOJUG
hello,

the web page can contain any random text ex: list of person's name.

I would like to know, the background resource bundle code?

sample code or hyper links will work.

Thanks
Yatin
Reply all
Reply to author
Forward
0 new messages