cadev;11023879 wrote:I believe the character is being pasted in from an external source, not typed in.
Pasted into what? A form hosted in a browser? Some piece of software? A file? The application where this data "gets pasted in" is every bit as capable of botching the data hand off as any other link in the data custody chain.
cadev;11023879 wrote:The editor is custom and the data is being sent via XHR with UTF8 encoding.
The custom editor may or may not support a utf8 charset.
cadev;11023879 wrote:The DB is set up to store in UTF8 as well.
Good! What about the connection you make to your database? It has a charset as well [EDIT: see next comment].
cadev;11023879 wrote:My rendering script (php) sets the encoding of the mysql connection charset to utf8 as well.
OK wait it sounds like maybe you covered the client connection's charset then....
cadev;11023879 wrote:So, the character makes it all the way to the renderer and the 'imagettftext' function.
One cannot be too sure about this. The ball could have been dropped at the entry stage. You might want to write these glyphs from your script that is retrieving them to a file where you can inspect them and be sure.
cadev;11023879 wrote:I've looked at some character maps for Helvetica and it doesn't look like this character (U+ 2015) has a glyph in the font, which is why it's being rendered as a square box.
This certainly sounds to me like a show-stopper for that char. You could run a test with some other font suitable for the original data's language -- if you know what it is.
So, here's my next tough question. Aside from creating a manual array'd character list of what my font(s) all contain, is there any other way to check a character against a font (or several fonts) to make sure it has a glyph? I'm guessing that would have to be done via shell ('system' function)?
Thanks guys[/QUOTE]