You need to use imagettftext, along with a suitable TTF font that supports 
the UTF-8 characters you want to use.

Here's an example:

http://pastebin.com/hnWns2T9

The font I used for this test is located here (it's not a very high quality 
font, but it covers a lot of the UTF-8 space):

http://unifoundry.com/unifont.html

And here's the output image:

http://i.imgur.com/WVeFn3m.png

On Wednesday, February 5, 2014 11:47:49 AM UTC-5, Ray Paseur wrote:
>
> Please see this note: 
> http://php.net/manual/en/function.imagestring.php#71038
>
> I cannot get imageString() to render UTF-8 multibyte characters at all.  
> Also, I cannot get imageString() to render the black diamond 
> questionmarks.  I am thinking that the F*q**... is a string of characters 
> being sent to the browser.  The browser has been told it is getting UTF-8 
> characters and the black diamond questionmarks are invalid UTF-8 
> characters.  Absent any more information, I would try to find out what is 
> creating the browser output.
>
> On Tuesday, February 4, 2014 3:03:48 AM UTC-5, Scott Castillo wrote:
>>
>> I am creating an image in the middle of a process.  The process uses 
>> the imagestring() function a lot.  Although everything works, I am getting 
>> junk output prior to redirecting back to the page to pick up the image. 
>>  The process works but I would like the junk output not to appear in the 
>> interim.  The output has symbols such as the following:  
>> F�q  ����<� "p� Կ�.
>>
>> Would like to suppress the noted symbols.
>>
>> Any help would be appreciated.
>>
>

-- 
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to 
washington-dcphp-group+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/washington-dcphp-group?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to washington-dcphp-group+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to