[development] Converting UTF8 strings to ASCII in Drupal

Ivan Sergio Borgonovo mail at webthatworks.it
Mon Nov 16 16:15:24 UTC 2009


On Mon, 16 Nov 2009 11:02:12 -0500
Brian Vuyk <brian at brianvuyk.com> wrote:

> <?php
> require_once './includes/bootstrap.inc';
> drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

> $string = "Stéphanie,D Hérouville";
> $output = iconv("UTF-8", 'ASCII//TRANSLIT', $string);
> print $output . "\n";
> ?>

even after bootstrapping:

var_export output the correct result.
echo... report the correct result...

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the development mailing list