I'm a relative newbie to TT. I have a DB (MySQL) table with a list of ISO-3166 countries. Some of the country names have non-standard characters in them eg: CÔTE D'IVOIRE.

I load these into an array @countries, and try to put them in a combo list with:

        <select id="countrycode" name="countrycode">
[% FOREACH item IN countries %]
<option value="[% item.countrycode %]">[% item.countryname %]</option>
[% END %]
        </select>

But the non-standard characters all display as '?'. I've verified that they are correct after being read into the array, and my browser is capable of displaying them correctly. What do I need to do to get them to display correctly on my page? Is it even possible?

Thanks

ROSCO

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to