Edit and Export

General TRichView support forum. Please post your questions here
Post Reply
Error202
Posts: 2
Joined: Tue Mar 28, 2006 8:04 am
Location: Moscow
Contact:

Edit and Export

Post by Error202 »

May TRichView edit and export html document in Windows-1251?
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This encoding corresponds to RUSSIAN_CHARSET.

I assume that your TRichView documents are not Unicode internally.
In this case, text is saved in HTML as it is, without conversion (if rvsoUTF8 is not included in the HTML saving Options).
So if the text has Russian charset, it will be saved in Windows-1251 encoding.
If RVStyle.TextStyles[0].Charset = DEFAULT_CHARSET, no <meta charset> is saved (allowing browsers to autodetect language).
If RVStyle.TextStyles[0].Charset = RUSSIAN_CHARSET, <meta http-equiv="Content-Type" content="text/html; charset=Windows-1251"> is saved.
Error202
Posts: 2
Joined: Tue Mar 28, 2006 8:04 am
Location: Moscow
Contact:

Post by Error202 »

SPASIBO!
Post Reply