Converting national characters to HTML

1999-09-13 Thread Winfried Klum
I'm using data from a database that contains national characters like ä,ü,ö and so on. Is there a possibilty to autoconvert this characters to 'ouml;' etc. in the JSP output ? I'm using GNU-JSP with Apache JSERV. Winfried

Re : Converting national characters to HTML

1999-09-13 Thread Ilan Belehssen
You should use a function to encode your text in HTML. I didn't found it in the package (this is amazing) so you have to write it. This function should look like this : (it does the same thing of ASP's Server.HTMLEncode) String HTMLEncode (String str) { String res = ""; if (str == null)

Re: Re : Converting national characters to HTML

1999-09-13 Thread Winfried Klum
Hi Ilan, thanks for your reply. The problem is, I use the table data from my database in the jsp fashion way '%=myVariable%' , so your solution will only work if I use your method in conjunction with the PrintWriter out . Mayby there's another more JSP conform solution. Ilan Belehssen schrieb:

Re: Converting national characters to HTML

1999-09-13 Thread Taylor Gautier
Not yet. I've been pressing Sun to include content-type translation into the JSP spec. -tg - Original Message - From: Winfried Klum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 13, 1999 3:16 AM Subject: Converting national characters to HTML I'm using data from