Re: [twsocket] error Invalid code page (Peter Van Hove) (Arno Garrels)

2009-10-29 Thread Peter Van Hove
Thanks for the info. But why do you need the ASCII and UTF-7 encoding at all? Provided the text contained non-ASCII chars they would be replaced by the default fail char ?, why not just save with default ANSI encoding, the first 128 chars are always the same, in any codepage. Also I've never seen

Re: [twsocket] error Invalid code page (Peter Van Hove)

2009-10-26 Thread Peter Van Hove
So maybe somewhere in the code a wrong codepage is passed this this Win32 API call. That won't raise an exception unless some wrapper function throwed one. I sorted the problem out and it was not ICS (as what we agreed on already). FYI I use a save file dialog and allow the user to choose

Re: [twsocket] error Invalid code page (Peter Van Hove)

2009-10-25 Thread Arno Garrels
- Original Message - From: Peter Van Hove pe...@smart-projects.net To: twsocket@elists.org Sent: Sunday, October 25, 2009 12:21 PM Subject: [twsocket] error Invalid code page (Peter Van Hove) But I did a search in the files for Invalid code page and I couldn't find anything ... so I

Re: [twsocket] error Invalid code page (Peter Van Hove)

2009-10-25 Thread Peter Van Hove
Where it said: The error is actually coming from Windows, not Delphi, when TEncoding's constructor passes $ to the Win32 API GetCPInfo() function and it fails. Passing an invalid codepage to GetCPInfo will let the function fail with return ERROR_INVALID_PARAMETER, the exception is actually

[twsocket] error Invalid code page

2009-10-22 Thread Peter Van Hove
Hi guys, I posted below quote in the embarcadero.public.cppbuilder.ide newsgroup. My first reaction was that this is a Borland issue, but since I use two components (ICS and DragDrop) I need to make sure that it's not coming from something else. This is on a user's system and I can't debug

Re: [twsocket] error Invalid code page

2009-10-22 Thread Arno Garrels
Hello Peter, Would be nice to know what ICS components you actually use. -- Arno Garrels Peter Van Hove wrote: Hi guys, I posted below quote in the embarcadero.public.cppbuilder.ide newsgroup. My first reaction was that this is a Borland issue, but since I use two components (ICS