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:
Any help would be appreciated.
Thks & Rgds
From: Bhalchandra Patil [mailto:firstname.lastname@example.org]
Sent: Wednesday, 29 November 2000 9:23 PM
To: Unicode List
Subject: posting of unicode data to servlet
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.
This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:15 EDT