 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ralf Junker Guest
|
Posted: Thu Jul 17, 2003 9:39 am Post subject: Re: ISO-8859-2 encoding (XML) |
|
|
Hi Nick,
DIUnicode supports reading from and writing to of over 40 character sets and
transformation formats. ISO-8859-2 is just one of them.
BTW, the transformation takes place on a character by character basis and does
not depend on any Operating System (Windows API) calls.
Regards,
Ralf
----------
The Delphi Inspiration
http://www.zeitungsjunge.de/delphi/
覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧
Nick Bradbury (TopStyle) wrote:
| Quote: | I'm using WinInet's InternetReadFile to download XML files and store them
internally as WideStrings. These WideStrings are displayed using DrawTextW
(NT/2K/XP), and everything looks fine when the XML is encoded as UTF-8 or
UTF-16.
However, I'm not seeing the correct characters when the XML is encoded as
ISO-8859-2. This is a new area for me so hopefully there's something simple
I'm missing here. Is there some conversion I need to do on the WideString
to get the correct characters to display?
Thanks,
|
|
|
| Back to top |
|
 |
Nick Bradbury (TopStyle) Guest
|
Posted: Tue Jul 22, 2003 3:48 pm Post subject: Re: ISO-8859-2 encoding (XML) |
|
|
"Mike Lischke" <public (AT) lischke-online (DOT) de> wrote:
| Quote: | Is there some conversion I need to do on the WideString
to get the correct characters to display?
Sure. The character encoding tells you, which code point (the byte data)
represents a certain character...See MultibyteToWideChar in the OH.
|
Thanks, Mike - that's exactly what I was looking for.
--
Nick Bradbury
TopStyle CSS/HTML/XHTML Editor
FeedDemon RSS Reader
http://www.bradsoft.com/
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|