i have a problem with some characters like & or .
If i use the character "&" i cant get an sxw document and cant convert it to doc-format.
I think phpdocwriter use UTF-8 and so i think it must be work.
I hope somebody has an idea to help me!
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a known problem with the last released version, maybe you can try to replace these characters before calling to "write()" using something like this:
Ok, but there is the Problem that i cant replace the characters, because i need these to generate a letter or a calculation.
Have you an idea why it doesnt work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry!!! I didnt understand you correctly! I try it with htmlspecialchars(...) and it works! Thanks for your help.
You had said that in the next version it will work automatically. Where would change it, in function Write()?
With htmlspecialchars(..)?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, htmlspecialchars() could be a posibility, but it should be added wherever the user inputs any "data" to the document: write function, metadata functions, name of styles, etc.
Anyway, the version I'm currently working on depends on the DOM extension (PHP5), so this will be transparent also for the library (the extension do the conversion of the characters).
Regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have the same problem with .
When i generate the document, i get a €€€square wheras a ...I try htmlspecialchars but it doesnt work.
Please help me!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
i have a problem with some characters like & or .
If i use the character "&" i cant get an sxw document and cant convert it to doc-format.
I think phpdocwriter use UTF-8 and so i think it must be work.
I hope somebody has an idea to help me!
Thanks!
Hi,
This is a known problem with the last released version, maybe you can try to replace these characters before calling to "write()" using something like this:
$sxw->write(htmlspecialchars($string, ENT_QUOTES));
Next version of the library will replace these chars automatically.
Regards.
Ok, but there is the Problem that i cant replace the characters, because i need these to generate a letter or a calculation.
Have you an idea why it doesnt work.
sorry!!! I didnt understand you correctly! I try it with htmlspecialchars(...) and it works! Thanks for your help.
You had said that in the next version it will work automatically. Where would change it, in function Write()?
With htmlspecialchars(..)?
Well, htmlspecialchars() could be a posibility, but it should be added wherever the user inputs any "data" to the document: write function, metadata functions, name of styles, etc.
Anyway, the version I'm currently working on depends on the DOM extension (PHP5), so this will be transparent also for the library (the extension do the conversion of the characters).
Regards.
Hi,
i have the same problem with .
When i generate the document, i get a €€€square wheras a ...I try htmlspecialchars but it doesnt work.
Please help me!
sorry i get a square only wheras a , i try also to change the encoding but it doesn't work too...