Hi

I'm trying to encode text entered into an html form.  In dreamweaver,
special characters seem to be encoded as “ (a curly quote) for
example, which I assume is utf-8.

Here is my code snippet:

htmlentities(html_entity_decode(strip_tags(stripslashes(trim($data)))),
ENT_QUOTES), ENT_QUOTES, "utf-8")

but this does not seem to return the encoded value.  I've tried all the
character sets, but none of them seem to do anything apart from the windows
specific character set, which doesn't return the value I want.

I've tried using html_entity_decode with uft-8, but it throws an error
saying that the function doesn't support MBCS (Multibyte character sets???)

I've also tried using utf8_encode() before trying to html encode, but this
doesn't work either.

Any help gratefully appreciated

Thanks In Advance
Roland

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to