Skip Menu |

This queue is for tickets about the RTF-Writer CPAN distribution.

Report information
The Basics
Id: 43403
Status: resolved
Priority: 0/
Queue: RTF-Writer

People
Owner: Nobody in particular
Requestors: benoit.merouze [...] ipercom.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.11
Fixed in: (no value)



Subject: Missing escaping of special characters
In Writer.pm it would be great to give the possibility to developers to add more "refinements" in the Escape array when calling the library. Characters like à, é, è, ê, ç are badly escaped, and if I add the following lines in the refinements array, I can have the result I'm looking for: "\xE8" => "\\'8f", # for è "\xE9" => "\\'8e", # for é ... Regards, Benoit Merouze
I apologize for this ticket, I didn't realize the problem I had was just with MS Word on Mac OS. Special characters are well encoded for Windows platforms. In order to write RTF documents compatible with MS Word for Mac OS, I had to specify the font charset in the prolog like that : $rtf->prolog( 'fonts' => [ \'\fcharset0 Arial' ], ... I love RTF::Writer! Regards, Benoit Merouze