BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: ISO-8859-2 encoding (XML)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internationalization
View previous topic :: View next topic  
Author Message
Ralf Junker
Guest





PostPosted: Thu Jul 17, 2003 9:39 am    Post subject: Re: ISO-8859-2 encoding (XML) Reply with quote



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





PostPosted: Tue Jul 22, 2003 3:48 pm    Post subject: Re: ISO-8859-2 encoding (XML) Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internationalization All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.