Hi,
I am trying to load a blob in a TRichViewEdit control. The blob is the actual html from some email and it's german, it has umlauts and things like that. I tried many combinations, however I get this:
äüöß ÄÖÜ
instead of this:
дьцЯ ДЦЬ
How can I do this properly, please?
Thanks
Load blobs having umlauts
forgot to mention
I am using Delphi 7, the blob is read with Field.AsString, and the import is done using TRvHtmlImporter. That's all.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
nah, still not good
I tried that and when I do I get missing text, for example I get this:
END.
instead of this:
Standard-Testmail äüöß ÄÖÜ
END.
The line starting with "Standard" is lost altogether.
END.
instead of this:
Standard-Testmail äüöß ÄÖÜ
END.
The line starting with "Standard" is lost altogether.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I received it,
The file says its encoding is iso-8859-1. This encoding is very similar to Windows encoding for western languages (1252). It's not only for Germany, but for English, French, Spanish, Portuguese too.
So it is not UTF-8, assign rvHtmlImporter.Encoding back to rvhtmleANSI.
If you'd use Unicode versions of Delphi, you could specify RVStyle.DefCodePage=1252 before loading.
For Delphi 7, you can try assigning Charset = ANSI_CHARSET for all RVStyle.TextStyles before loading.
The file says its encoding is iso-8859-1. This encoding is very similar to Windows encoding for western languages (1252). It's not only for Germany, but for English, French, Spanish, Portuguese too.
So it is not UTF-8, assign rvHtmlImporter.Encoding back to rvhtmleANSI.
If you'd use Unicode versions of Delphi, you could specify RVStyle.DefCodePage=1252 before loading.
For Delphi 7, you can try assigning Charset = ANSI_CHARSET for all RVStyle.TextStyles before loading.