Paul wrote: > ----- Original Message ----- > From: "Arno Garrels" <[EMAIL PROTECTED]> > To: "ICS support mailing" <firstname.lastname@example.org> > Sent: Monday, December 01, 2008 2:53 PM > Subject: Re: [twsocket] D2009 does not recognize TSslHttpCli > > >> It seems that in Delphi 2009 the Rebuild All button does not >> always work as in Delphi 7. > > I find this very annoying. > Now, I have to correct this .inc file for every project manually > I'm testing in Resource compiler-->Directories and Conditionals and > Delphi Compiler-->Compiler-->Additional switches to set 'USE_SSL' > somewhere ... > I'm still struggling with D2009 though: I haven't found a way to edit > the .dpr file in the editor also :-( > >> >> If you receive ANSI data why don't you convert to UnicodeString? >> The new unit OverbyteIcsCharsetUtils.pas provides functions to get >> the Windows code page identifier from a MIME charset string. >> > I can check, but I have to be able to send foreign characters to > foreign computers > also which will have a different codepage.
So UnicodeString is your only choice and UTF-8 would be the prefered encoding for data exchange. > It is sent in the url. URLs have to be UTF-8 and URL encoded so no problemo. I changed URL encoding recently to UTF-8. However all URL functions take a String and return a String, that is a UnicodeString in D2009, this is possible since the URL encoded string only contains characters from the ASCII printable range. So when the URL encoded UnicodeString is sent it can be converted to ANSI with any current code page without data loss. > Difficult to test here.. You can write a small test application and see how it works. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be