On 11/21/2003 09:25 PM Dave Hodson wrote:
> A question for the list:
> 
> I have an input form, which is handled via Struts and the input is validated, 
> URLEncoded with UTF-8 and stored in a DB
> At a later date, the user can modify their input. The input is displayed with an 
> html:text tag, but unfortunately, it does not display properly.
> Specifically, the issue is that a URLEncoded character like "堂" (堂, a 
> building in Traditional Chinese) is modified before being written out
> It goes from "堂" to ""堂", which then displays incorrectly in the 
> browser.

Dave,
why are you URLEncoding your data before storing it in the database? If
it's to filter out SQL-breaking characters, perhaps you should be using
PreparedStatements instead of manually constructing a string for the SQL.

Adam
-- 
struts 1.1 + tomcat 5.0.14 + java 1.4.2
Linux 2.4.20 RH9

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

Reply via email to