|
|
 |
RE: FN-FORUM: Japanese encoding/charsets in RTF files
date posted 21st March 2006 11:24
Thanks Graeme
I will give the below a try, the HTML is already being sent to the client as
UTF-8 but it seems to get lost in translation as the RTF is generated, its
already crossed my mind to use PDF instead, its just that the RTF generator
I use makes it super simple to convert from HTML to RTF on the fly.
Will let you know the results as soon as I get round to looking at it
Regards
Ash
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Graeme J
Sweeney
Sent: 21 March 2006 11:33
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: Japanese encoding/charsets in RTF files
On Mon, 20 Mar 2006, ashley etchell wrote:
> Is there a way to pass the RTF doc through something else once its created
> to convert the text into UTF-8?
Don't know.
According to the 1.6 spec
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/h
tml/rtfspec.asp
you can embed Unicode in the document by just escaping it.
You can use http://uk.php.net/manual/en/function.iconv.php to map
Shift_JIS to UTF-8.
If the RTF generator can't cope with the UTF-8 then I'd look at first
getting a UTF-8 encoded html page working and see if transforming it to
another format, say PDF, is acceptable to the client.
Or maybe with something like this
http://phpdocwriter.sourceforge.net/
and using openoffice programmatically to generate the final format?
--
Graeme -
Top posting.
What's the most annoying thing about this forum?
Outlook Express: http://home.in.tum.de/~jain/software/oe-quotefix/
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|