Edit and Export
Edit and Export
May TRichView edit and export html document in Windows-1251?
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.