The root of the problem is that mudcat pages aren't properly formed, no doc type, meta tags, etc. These would give you better control over how the text is processed in the browser and what you get back in a POST from the form. Check a page here http://validator.w3.org/ will give some hints at what is needed. The user has no control over the character set that is being input, the page has full control, if it doesn't use it then the browser usually defaults to UTF-8. Once you have input in a known character set your server side environment should provide functions to convert as necessary. Your problems with cyrillic output must also be rooted in not declaring the character set for the page.
|