in reply to Text encoding in web form entries

Send the page that includes the form in utf8 since some browsers write it back in the charset they recieved the data regardless what you tell them with accept-charset. Put a hidden field in the post request, that ensures you what charset you expect to get back . Use the Accept-charset attribute in your forms. check your hidden field and convert the recieved data back to utf8 if needed. Use Post requests.
Boris

Replies are listed 'Best First'.
Re: Re: Text encoding in web form entries
by qq (Hermit) on Feb 20, 2004 at 08:51 UTC

    ++ and thanks

    Could I still have issues when people copy and paste from MS apps into the form? Will I need to run the demoronzier over some submissions?

    qq

      I do not know, but the trick is to put information into a form that gives you the power to recognice what happened to the data after the user has add something. Then convert it to a known state and continue processing. That works very well. I inherite from Apache::Request, process all incomming POST requests if they include one of my keys otherwise pass them through.
      Boris