siraj has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
   I faced a weird issue in IE. I tried to display a Farsi character in drop down list through a per cgi . 
It is displaying correctly in Firefox. In IE some of the characters are displaying differently.
However in the view source of IE , the charters are appearing correctly. Kindly suggest if there is any problem in encode/decode or its an IE issue?. Thanks in advance Siraj

Replies are listed 'Best First'.
Re: IE Unicode issue
by ikegami (Patriarch) on Sep 06, 2010 at 06:18 UTC
    You probably didn't specify the encoding, in which case your browser has to guess. Specify the charset in the Content-Type header (HTML) or in the <?xml?> directive (XHTML).
Re: IE Unicode issue
by Anonymous Monk on Sep 06, 2010 at 06:21 UTC
    Bytes are what gets sent over the wire, encodings are how those bytes are arranged, charset is HTTP/HTML way of communicating encoding, they should match up