Thread View: borland.public.cppbuilder.internet.web
6 messages
6 total messages
Started by Emmanuel
Wed, 15 Nov 2006 09:10
how can I know the data ,inputed from the browser, is ACSII or UTF-8
Author: Emmanuel
Date: Wed, 15 Nov 2006 09:10
Date: Wed, 15 Nov 2006 09:10
8 lines
1076 bytes
1076 bytes
Dear All, I face a problem when I am writing CGI how can I know the data ,inputed from the browser, is ACSII or UTF-8 ? Thank emmanuel emmauel@erphk.com
Re: how can I know the data ,inputed from the browser, is ACSII or UTF-8
Author: Hans Galema
Date: Wed, 15 Nov 2006 09:32
Date: Wed, 15 Nov 2006 09:32
12 lines
1314 bytes
1314 bytes
Emmanuel wrote: > I face a problem when I am writing CGI You could start by telling us if you wrote all CGI yourself or if you use components or so. > how can I know the data ,inputed from the browser, is ACSII or UTF-8 ? When does that happen? Did the browser user change something? Hans.
Re: how can I know the data ,inputed from the browser, is ACSII or UTF-8
Author: Remy Lebeau (TeamB)
Date: Wed, 15 Nov 2006 10:29
Date: Wed, 15 Nov 2006 10:29
11 lines
1238 bytes
1238 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message news:455ad81e@newsgroups.borland.com... > how can I know the data ,inputed from the browser, is ACSII or UTF-8 ? You need to look at the "charset" attribute of the "Content-Type" header that the browser sends to your script. Gambit
Re: how can I know the data ,inputed from the browser, is ACSII or UTF-8
Author: Emmanuel
Date: Wed, 15 Nov 2006 10:38
Date: Wed, 15 Nov 2006 10:38
23 lines
1542 bytes
1542 bytes
"Hans Galema" <notused@notused.nl> ??????:455adef7$1@newsgroups.borland.com... > Emmanuel wrote: > >> I face a problem when I am writing CGI > > You could start by telling us if you wrote all CGI yourself or if you > use components or so. no components, just use TWebRequest *Request >> how can I know the data ,inputed from the browser, is ACSII or UTF-8 ? > When does that happen? Did the browser user change something? I don't know the data input format , so I will update wrong data to database. eg: for chinese word "WOOD" in ACSII Code, will show other chinese word in UTF-8 > Hans.
Re: how can I know the data ,inputed from the browser, is ACSII or UTF-8
Author: Emmanuel
Date: Wed, 15 Nov 2006 12:53
Date: Wed, 15 Nov 2006 12:53
12 lines
1486 bytes
1486 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> д����Ϣ����:455aecfb$1@newsgroups.borland.com... > > "Emmanuel" <emmanuel@erphk.com> wrote in message > news:455ad81e@newsgroups.borland.com... > >> how can I know the data ,inputed from the browser, is ACSII or UTF-8 ? > > You need to look at the "charset" attribute of the "Content-Type" header > that the browser sends to your script. > But I find that TWebRequest->ContentType is Empty
Re: how can I know the data ,inputed from the browser, is ACSII or UTF-8
Author: Remy Lebeau (TeamB)
Date: Wed, 15 Nov 2006 18:51
Date: Wed, 15 Nov 2006 18:51
12 lines
1483 bytes
1483 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message news:455b0c66@newsgroups.borland.com... > But I find that TWebRequest->ContentType is Empty Then the browser is likely not sending a 'Content-Type' header. Which should only be happening if the browser is not posting any data to begin with. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads