Re: [twsocket] Posting unicode data in HTTP Post

2008-11-21 Thread Irfan Mulic
Hi, Thanks for your help, but still I am not getting the same results when I do post to php script. This is PHP script ?php echo Note = . $_POST['note']; if($_POST['action'] == 'i') { /* * This code will add new notes to the database */ $sql = INSERT INTO app_notes VALUES ('',

[twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Hi, I start using ICS components and I really like them. I am having troubles to work with unicode data ? Can I get more info is this supported and can I get some examples of it. I am using example httppost with Delphi 7. Thank you. -- Irfan Mulic -- To unsubscribe or change your settings

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: Hi, I start using ICS components and I really like them. Which ICS version are yuo using? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html I am having troubles to work with unicode data ? Can I get more info is this supported and can I get

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
I am using V5, first link on download page. On Thu, Nov 20, 2008 at 5:26 AM, Arno Garrels [EMAIL PROTECTED] wrote: Irfan Mulic wrote: Hi, I start using ICS components and I really like them. Which ICS version are yuo using? -- Arno Garrels [TeamICS]

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: I am using V5, first link on download page. Ah, ok. I am having troubles to work with unicode data ? What kind of problems do you have exactly? Can you show some code? With POST you just write data to a stream which is send as is. There is an example how to post

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Hi, Here is code: data := Format('date=%susername=%spassword=%shash=%snote=%saction=%s', [UrlEncode(FormatDateTime('mmddhh:nn',now)), UrlEncode(edtUserName.Text), UrlEncode(getMd5(edtPassword.Text)), UrlEncode(getMd5(dataHash)),UrlEncode(memoNote.Text),'i' ]); This memoNote.text

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: Hi, Here is code: data := Format('date=%susername=%spassword=%shash=%snote=%saction=%s', [UrlEncode(FormatDateTime('mmddhh:nn',now)), UrlEncode(edtUserName.Text), UrlEncode(getMd5(edtPassword.Text)), UrlEncode(getMd5(dataHash)),UrlEncode(memoNote.Text),'i'

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
So this is ansiChar is not widechar this is all in range of ansi characters... yes it is ICS issue, do you know is it fixed in newer versions? On Thu, Nov 20, 2008 at 11:25 AM, Arno Garrels [EMAIL PROTECTED] wrote: Irfan Mulic wrote: Hi, Here is code: data :=

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: So this is ansiChar is not widechar this is all in range of ansi characters... Why should one display UTF-8 strings in a AnsiString memo? Anyway just to be sure, UTF-8 is a AnsiString (one byte element size of the data array), WideString contains UTF-16 data with two byte

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Yes it is Tnt Memo. I am using widestring from Tnt, I was thinking that Tnt is in utf-8? Anywhay if I use urlencode on the character from Tnt Memo I am getting '?' as result. What should solve my problems with posting from Tnt Memo using ICS? On Thu, Nov 20, 2008 at 12:24 PM, Arno Garrels

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Please advice me how to solve this issue correctly, for UI I don't have anything except Tnt components in Delphi 7? What is correct approach to this, I am preaty new with this unicode stuff but I have to acomplish this task... Thank you very much. On Thu, Nov 20, 2008 at 12:46 PM, Irfan Mulic

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: Yes it is Tnt Memo. I am using widestring from Tnt, I was thinking that Tnt is in utf-8? Anywhay if I use urlencode on the character from Tnt Memo I am getting '?' as result. That's easy to explain. UrlEncode takes a AnsiString, memoNote.Text is of type WideString.