Irfan Mulic wrote:
> Hi,
>
> Here is code:
>
> data :=
> Format('date=%s&username=%s&password=%s&hash=%s¬e=%s&action=%s',
> [UrlEncode(FormatDateTime('yyyymmddhh:nn',now)),
> UrlEncode(edtUserName.Text),
> UrlEncode(getMd5(edtPassword.Text)),
> UrlEncode(getMd5(dataHash)),UrlEncode(memoNote.Text),'i'
> ]);
GetMD5() doesn't look like an ICS function since there is no overloaded
GetMD5() in v5 that takes a string.
>
> This memoNote.text is utf-8 this doesn't work with unicode
> characters?
It works as URL encoding should work:
Characters '0'..'9', 'A'..'Z', 'a'..'z' are left untouched,
any Char outside these rages are encoded "'%' + IntToHex(Ord(AnsiChar))"
It does not look like an ICS issue to me?
--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
> Is it fixed in new versions?
>
> HttpCli1.SendStream := TMemoryStream.Create;
> HttpCli1.SendStream.Write(Data[1], Length(Data));
> HttpCli1.SendStream.Seek(0, 0);
> HttpCli1.RcvdStream := TMemoryStream.Create;
> HttpCli1.URL := Trim(ActionURLEdit.Text);
> HttpCli1.PostAsync;
>
> Thanks.
>
> Irfan
> On Thu, Nov 20, 2008 at 8:59 AM, Arno Garrels <[EMAIL PROTECTED]>
> wrote:
>
>> 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 multi-byte form data on the
>> User-Made page on ICS website.
>>
>> --
>> Arno Garrels [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>>
>>
>>>
>>> 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]
>>>> 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 some examples
>>>>> of it.
>>>>>
>>>>> I am using example httppost with Delphi 7.
>>>>>
>>>>> Thank you.
>>>>>
>>>>>
>>>>> --
>>>>> Irfan Mulic
>>>> --
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> Irfan Mulic
>> --
>> 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
>>
>
>
>
> --
> Irfan Mulic
--
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