HTML Export

General TRichView support forum. Please post your questions here
Post Reply
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

HTML Export

Post by cychia »

1. When saving content as HTML, if rvsoUTF8 is included the exported HTML will automatically converted to utf8 right?

2. If rvsoUTF8 is not included, how can I export HTML with my specified encode format like GB2312 etc?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1. Yes.
2. The default saving, if UTF-8 is not used:
- non-Unicode text is saved as it is, without any conversion between charsets; but since you use Chinese, you should not use non-Unicode text;
- Unicode text is saved as a charset-independent text: English characters are saved as they are, other characters are saved as &#NNNN; codes; the produced HTML is large, but can be read in any charset.

Saving text can be modified using OnSaveItemToFile. You can convert text to the proper charset yourself using this event. But this is quite a low-level event, it must be user carefully.
Post Reply