Hi Ross,

My guess would be that this is an encoding issue. Perhaps the values are stored 
as iso-8859-1 (or a variation) or windows cp1252 and you're serving the pages 
as utf-8. Or vice-versa. You'll probably need to convert them to whatever 
encoding you are using in the web page.

-- Josh

Ross Crawford wrote:
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?


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

Reply via email to