[OWASP-ESAPI] Does DefaultEncoder handle UTF-8?

Lei Chen lei.chen.2004 at gmail.com
Tue Mar 31 00:08:33 EDT 2009


We have a form that takes user data that includes people's names in
Chinese/Japanese. I used
ESAPI.encoder().encodeForHTML()/encodeForHTMLAttribute() to encode the input
and display back to browser to show whether there is any mandatory fields
that are missing. The names seem  to be double-encoded and does not display
properly. Is this the correct behavior? How do I make the names display in
the original form?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.owasp.org/pipermail/owasp-esapi/attachments/20090331/c3cc4434/attachment.html 

More information about the OWASP-ESAPI mailing list