Page 1 of 1

Edit and Export

Posted: Tue Mar 28, 2006 8:06 am
by Error202
May TRichView edit and export html document in Windows-1251?

Posted: Tue Mar 28, 2006 6:07 pm
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.

Posted: Tue Mar 28, 2006 6:54 pm
by Error202
SPASIBO!