bug using a £ sign
Posted: 2011-09-17T15:25:12-07:00
Hi
searched everywhere on this forum and the web, no one seems to of come accross this issue, looking for some help please.
I'm using this code:
exec("convert -fill black -pointsize 18 \\-size 600x caption:@".$invoice_ext_id.".invoice.txt ".$temp_file_name.$invoice_ext_id."-B.jpg");
The php variables are just strings.
This code pulls in a text based file with multiple lines to create an invoice text area, which is later then copied into my final invoice image, and then into pdf - probably an easier way but it works.
My problem:
When reading in a caption file that contains a '£' that is a british pound sign [aka £ in html], the image stops rendering text at the point of the pound sign (£).
Any ideas? I wondered if there was a way to escape the sign or something?
[In more detail]
I pull values from a database prior to this stage, and insert them into a text file, each invoice line goes into a line textfile line (plain text).
This file is then read in using the imagemagick code posted above. So i do have control over what goes into the file - just a little lost with no supporting docs really.
Cheers
Paul
searched everywhere on this forum and the web, no one seems to of come accross this issue, looking for some help please.
I'm using this code:
exec("convert -fill black -pointsize 18 \\-size 600x caption:@".$invoice_ext_id.".invoice.txt ".$temp_file_name.$invoice_ext_id."-B.jpg");
The php variables are just strings.
This code pulls in a text based file with multiple lines to create an invoice text area, which is later then copied into my final invoice image, and then into pdf - probably an easier way but it works.
My problem:
When reading in a caption file that contains a '£' that is a british pound sign [aka £ in html], the image stops rendering text at the point of the pound sign (£).
Any ideas? I wondered if there was a way to escape the sign or something?
[In more detail]
I pull values from a database prior to this stage, and insert them into a text file, each invoice line goes into a line textfile line (plain text).
This file is then read in using the imagemagick code posted above. So i do have control over what goes into the file - just a little lost with no supporting docs really.
Cheers
Paul