I have a text area that people should type in (duh) which will later be
displayed for other users via HTML. I've taken care of the HTML aspect
in a pretty cool way, but I worry about character sets now.
Everything works for me, but I use UTF-8. When the form is submitted,
how do I know what character set the data is coming in? I need to know
this to perform htmlentities on the data and have it work properly.
All my pages are defined as UTF-8. Would this mean that the data coming
from the form also be UTF-8?
<meta http-equiv="content-type" content="text/html;charset=utf-8">
Finally, when I need to put the content back into the textarea for
editing, do I need to use the original character set with
html_entity_decode, or can I have it output in a new character set?
I've dealt with character sets in REALbasic before, and have a good
grasp of what they are and such. But I have no experience with
third-party browsers and all that jazz.
Basically, what do I do?
--
- Thom McGrath
Head of the ZeeTox Project and lead programmer for The ZAZ
Contact me with iChat or AOL Instant Messenger: zazTekcor