Re: POSTing Chinese characters

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brian Burgess (bburgess66_at_hotmail.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 23:02:53 +0800

Hi David,

Thx. This is not actually using a browser. It is using an Internet
Transfer Control (MSINET). Do you know if the MSINET uses the encoding
currently set by the IE settings? And if so, can it be programmatically
set?

Thx again

-BB

"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:OEQv%23CRsEHA.3788@TK2MSFTNGP09.phx.gbl...
> You will have to take a network trace to determine if the missing
characters
> were either:
> 1. Never sent by the browser
> 2. Lost in translation by the web server
>
> The best way to send character data between the web browser/server is to
> send them UTF8 encoding, %-encoded. This will pass-thru just about
> everywhere and you can decode the characters whenever you want. It is not
> clear whether the web browser chose to UTF8-encode the POST data or not.
>
> As soon as you start using a locale-specific encoding, you are going to
run
> into encoding problems, especially if the locale of the web server does
not
> match the web browser -- and this behavior is pretty much by-design. You
> always want to transport and display data in a non-ambigous fashion, and
if
> you *need* to convert, convert at the presentation layer at the very end.
> Store everything as Unicode and transport everything as %-encoded UTF8,
and
> you will safe from the I18N issues.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "Brian Burgess" <bburgess66@hotmail.com> wrote in message
> news:eQGfmpPsEHA.1520@TK2MSFTNGP11.phx.gbl...
> Well the POSTed string looks like this:
> Login=¡LE|¡L&Passwd=123456&submit=Submit
> I have verfied this, and it works in English
>
> When I look at the individual fields (with Request.Form) after the data is
> POSTed, the values are:
> Login=¡LE|¡L
> Passwd=123456
> submit=Subm
>
> When English is used for both Login and Password, then 'submit' always =
> 'Submit'
>
> Seem odd?
>
> thx
>
> -BB
>
> "Bernard" <qbernard@hotmail.com.discuss> wrote in message
> news:%23UcO$uNsEHA.2688@TK2MSFTNGP14.phx.gbl...
> > Haven't seen this before, how do you post the data ?
> > and how do your verify the data length?
> >
> > --
> > Regards,
> > Bernard Cheah
> > http://www.tryiis.com/
> > http://support.microsoft.com/
> > http://www.msmvps.com/bernard/
> >
> >
> >
> > "Brian Burgess" <bburgess66@hotmail.com> wrote in message
> > news:emDYM2MsEHA.2300@TK2MSFTNGP09.phx.gbl...
> > > Hi all,
> > >
> > > Anyone ever try this on an English IIS? When I have Chinese
> characters
> > in
> > > the POSTed data, the total length of the data is reduced by 1 for each
> > > chinese char.
> > >
> > > Anyone know how to handle this?
> > >
> > > Thx in advance,
> > >
> > > -BB
> > >
> > >
> >
> >
>
>
>



Relevant Pages

  • [NT] Poisoning Cached HTTPS Documents in Internet Explorer
    ... Get your security news from a reliable source. ... "poison" a user's browser cache with a malicious document that will later ... The attacker can exploit this vulnerability for "replacing" HTML ... to communicate with a malicious web server over HTTPS without the browser ...
    (Securiteam)
  • RE: [Full-Disclosure] How big is the danger of IE?
    ... The following link details compromised/malicious web servers infecting ... the web server configuration to append the script to all files served by ... method used to compromise the servers. ... switching to another browser may significantly reduce ...
    (Full-Disclosure)
  • RE: [Full-Disclosure] How big is the danger of IE?
    ... The following link details compromised/malicious web servers infecting ... the web server configuration to append the script to all files served by ... method used to compromise the servers. ... switching to another browser may significantly reduce ...
    (Full-Disclosure)
  • Re: ampersand in urls when using xhtml 1.0 strict
    ... My web server is clearly seeing & and the browser is ... After including this header I was able to remove the encoded ... First, this is very strange because if your browser was displaying the page as HTML, then it was already receiving a content type header from the web server telling it that the page was HTML, or else there was no header and the browser was treating it as HTML by default. ...
    (comp.infosystems.www.authoring.html)
  • Re: UTF-8 without external modules on Perl 5.0
    ... before general browser support for utf-8 was adequate. ... Users could select an 8-bit web page encoding appropriate to their ... and then submit their query - the browser would submit their ... same form will handle file upload). ...
    (comp.lang.perl.misc)