RVHTML and UTF-8
Posted: Thu May 17, 2007 12:33 pm
Hi there,
When I import an HTML file (using RVHTML) with a UTF-8 byte-order mark at the beginning (EF BB BF), the BOM is shown in my TRichViewEdit component, like this:

as if it were a sequence of single-byte characters. Any Unicode text is also garbled. The file contains not only the BOM, but also a meta tag specifying the encoding:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Can anyone tell my how to get RVHTML to treat Unicode text correctly?
All help appreciated,
Martin
When I import an HTML file (using RVHTML) with a UTF-8 byte-order mark at the beginning (EF BB BF), the BOM is shown in my TRichViewEdit component, like this:

as if it were a sequence of single-byte characters. Any Unicode text is also garbled. The file contains not only the BOM, but also a meta tag specifying the encoding:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Can anyone tell my how to get RVHTML to treat Unicode text correctly?
All help appreciated,
Martin