Hello, this is further to the thread of French Accented Characters, but I now need a little help to get it working properly.
I have the $diff array in place and am calling the characters by their name ($diff etc.)
The array that I am using is:
and I am calling the elements like this:
$pagetext="this is some text where I need an accented character. The word with the character is d".$diff."cor.";
This should print the word "dcor", but what gets printed to the pdf file is "deacutecor". How do I make this character print as ??
Use the directly!
I would love for that to work as that would be the easy way, but when I put:
it prints: prsenter
In theory you shouldn't need to use any diff array at all, because the default encoding (WinAnsiEncoding) is already correct for French. But I know there are some problems in this class with accented letters. If you don't want to bother with that, try FPDF.
I would really prefer not to switch classes at this point as I already have numerous pdf files that I am creating from a database, and I have a real good handle on everything else about this class. Have you not seen or been able to get french accented characters to work with this class?
I am in a bit of a bind as the project that I am working on has a launch date of Feb 1 and I need to have the french characters working by then.
I just took the demo.php file, replaced "creation" by "cration" and it worked!
Here is what I get if I replace PHP Pdf Creation with PHP Pdf Cration
I wonder if it has something to do with the fonts that I have in the fonts folder. It is a Linux server with Red Hat
Try to put chr(233) to see what it gives.
You're typing your text on a Mac and of course you didn't say it!
You are correct olipla, I am typing on a Mac. I am using the text editor BBEdit. Do I have to specify different character encoding in the script then? I have never run into problems with typing on a Mac before with regard to accented characters. How do I fix it? Or, do you know how to type '' while in Pico? I can modify the file on the server to see if it accepts the raw .