[development] Converting UTF8 strings to ASCII in Drupal

Ivan Sergio Borgonovo mail at webthatworks.it
Mon Nov 16 16:56:29 UTC 2009


On Mon, 16 Nov 2009 17:15:24 +0100
Ivan Sergio Borgonovo <mail at webthatworks.it> wrote:

> 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...

forget about it. It was an artefact of the setup of the box I had
under my finger at the moment.

Dave Reid was right.

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



More information about the development mailing list