Re: Re: imagettftext and utf-8 (swedish characters)
| From: | David Sveningsson | Date: | Fri, 29 Feb 2008 02:41:28 +0000 |
| Subject: | Re: Re: imagettftext and utf-8 (swedish characters) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-270679@lists.php.net to get a copy of this message | ||
Nathan Rixham skrev:
before going any further, your HTML page is in UTF-8 yes? with the appropriate content-type line.Yes, apache uses only utf-8 as charset and the html content-type meta tag is set to utf-8 too. Also, the html form validates at validator.w3.org
plus: first debugging step: function preview(){ $title = html_entity_decode($_GET['title'], ENT_COMPAT, 'UTF-8'); print_r($title); #verify in view source / web browser that data is correct before it's sent to imagettftextI see the characters correctly, and page info in firefox says the encoding is utf-8. -- //*David Sveningsson [eXt]* Freelance coder | Game Development Student http://sidvind.com Thou shalt make thy program's purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding.