PHP has a long history of thinking a byte is the same as a character, and a bias toward ISO-8859-1 characters. Obviously this bias has led to numerous UTF-8 character set collisions since UTF-8 characters are multibyte in the area where ISO-8859-1 has single-byte Western European accented characters. I have never investigated character sets with the GD library, but I'll do that and see what I find. The little black diamond question marks are a fairly common browser rendering for incorrectly encoded characters. This article may be helpful.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11880-Unicode-PHP-and-Character-Collisions.html
If I can recreate the failure, I'll show you my failing code and what might be done to fix it.
On Tuesday, February 4, 2014 3:03:48 AM UTC-5, Scott Castillo wrote:
-- http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11880-Unicode-PHP-and-Character-Collisions.html
If I can recreate the failure, I'll show you my failing code and what might be done to fix it.
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comments:
Post a Comment