Detecting the charset used for sending data
| From: | Alexander Skwar | Date: | Tue, 19 Mar 2002 23:41:06 +0000 |
| Subject: | Detecting the charset used for sending data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89234@lists.php.net to get a copy of this message | ||
Hi!
When a user sends data from a <form>, how can I detect which charset the
browser used to send the data to the server? Can I assume that it's
always the same as the first charset in HTTP_ACCEPT_CHARSET?
Hmm, no, doesn't seem like it. At least not in Galeon when I reset the
charset manually. :(
If a user sets his browser to use UTF-8 (or whatever) and then submits a
form with a text field, how do I find out which charset was used?
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber:
askwar@charente.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 2 days 12 hours 24 minutes