Perhaps you should consider using a Property ResourceBundle for this purpose. There are several excellent articles on the topic on the Javasoft website. In particular I recommend John O'Conner's articles (search for his name). You might also want to look at XSLT as a potential technology to help you. I've used hierarchical XSL stylesheets to do what you describe successfully on several projects. Regards, Addison =========================================================== Addison P. Phillips Principal Consultant Inter-Locale LLC http://www.inter-locale.com Los Gatos, CA, USA mailto:[EMAIL PROTECTED] +1 408.210.3569 (mobile) +1 408.904.4762 (fax) =========================================================== Globalization Engineering & Consulting Services On Wed, 29 Nov 2000, Sujit Sunthankar wrote: > Hi, > > Just on another similar topic; > > I am trying to define tags in Unicode and store them in an ascii file that I > wish to read from within the JSP to create the appropriate resulting HTML. > Thus if the user wishes to see the page in Japanese for eg. I want to read > the file called tags_jp.txt to create the page, and the file tags_jp.txt > will have Japanese character symbols in Unicode for each tag. The page > essentially is a data entry page. The tags are used to create prompts for > data entry fields. Thus rather than having indivdual JSP pages, I wish to > have only one JSP but multiple tag files. > > I am quite new to Java, so could you advice as to ow I should access the > file and which class/methods should I use to read the file. > > The tags file I wish to maintain will have the following structure: > > tag_1 \uHHHH > tag_2 \uHHHH > etc. > etc. > > Any help would be appreciated. > > Thks & Rgds > Sujit > > -----Original Message----- > From: Bhalchandra Patil [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 29 November 2000 9:23 PM > To: Unicode List > Subject: posting of unicode data to servlet > > > Hi, > > i am running an servlet on weblogic ( jre 1.2). The html page should accept > input in any character set say chinese. That value is posted to the servlet. > I want to retrieve the unicode value of the character in the servlet. > > In the html page, i have specified meta tag > <META HTTP_EQUIV="Content-Type" content="text-html; charset="UTF-8"> > > in servlet, i am using String str = request.getParameter("name") > str.getBytes("UTF8") does not work. > > What should i do to get the unicode values of the characters entered. > > Please help!!!!! > > regards, > bhala > > > > >

