Hello for all,
I'm a newbie in Struts dev and just now I'm faced with a strange problem 
related to accented letters.
I read in a list of entries written in UTF-8 and fill a listbox with parsed 
entries on a jsp page.
Unfortunatelly the accented letters doesn't appear properly as they was written 
in file (csv format, parsed before filling).
the response is combined from a HtmlHead.jsp, xxx.jsp (let's say, a body) and a 
HtmlFoot.jsp. The HtmlHead.jsp contains
<?xml version="1.0" encoding="utf-8"?>
and in <head>:
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

When I try to reach a copy of csv file outside of /WEB-INF through browser, it 
has the same problem with accented characters, but if it has been changed into 
html adding the <html>, <head> and <body> tags with modifications above, the 
letters are OK.
Any ideas where I missed and what should to do to get proper accented letters 
in listbox?
I get also a second problem regarding accented letters. Due to 
internationalisation I keep the texts appeared on page in a property file. The 
messages contains accented letters as well. In jsp pages I call them as, for 
example 
   <s:text name="properties.something123"/>
and it works well, EXCEPT the stuff in <head>:
<head>
....
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="<s:text name="properties.description"/>"/>
<meta name="keywords" content="<s:text name="properties.keywords"/>"/>
<title><s:text name="properties.header"/></title>
....
</head>

Any idea what went wrong?   

Thanks in advance,  krnl
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=510960&messageID=601230#601230


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to