You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dean A. Hoover" <dh...@rochester.rr.com> on 2004/03/16 18:19:50 UTC

non-ascii characters

I have a database with ISO 3166 country
names and codes that I use to populate an
html:select. There is one country in the list
that contains a non-ascii character and I want
to make sure it shows up properly. That
country is listed in HTML as
&Aring;LAND ISLANDS

I have two questions regarding this non-ascii:
1) How should I encode it in my (mysql)
database? Right now I put it in with the
character reference as written above.

2) Assuming I leave it the way it is in
the database as stated in 1) above, how
do I get the html tag machinery to not
attempt to escape the ampersand? This
is the code I am using:

<td align="left">
<html:select property="contactInfoWidgetsSubFormCountryCode">
<html:options collection="countries"
              property="value" labelProperty="label"/>
</html:select>

Thanks in advance for help.
Dean Hoover


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org