Reputation: 337
I am creating a merged word document using the Open TBS plugin for Tinybutstrong, however I cannot get it to display the euro symbol correctly when merging from a php variable.
I have tried:
None of these display correctly, has anyone come across/been able to solve this?
Upvotes: 1
Views: 456
Reputation: 5552
Your PHP code must be saved in UTF-8 (without DOM).
Your database (if any) must store data in UTF-8.
And your TBS template must be loaded with the option OPENTBS_ALREADY_UTF8
.
$TBS->LoadTemplate('document.docx', OPENTBS_ALREADY_UTF8);
Upvotes: 3