Hi,
there is a inconsistency in using utf-8.
If you use tiny_html
(http://de2.php.net/manual/en/function.tidy-repair-string.php), you have
to use "utf8" to encode your data in utf-8.
If you use html_entity_decode()
(http://de2.php.net/manual/en/function.html-entity-decode.php), you have
to use "UTF-8".
This difference is not necessary. Can it be possible to use one
notation. With current implementation, you always has to look into the
documentation, which notation you have to use.
Mathias
Mathias Bank wrote:
If you use tiny_html
(http://de2.php.net/manual/en/function.tidy-repair-string.php), you have
to use "utf8" to encode your data in utf-8.If you use
html_entity_decode()
(http://de2.php.net/manual/en/function.html-entity-decode.php), you have
to use "UTF-8".This difference is not necessary. Can it be possible to use one
notation. With current implementation, you always has to look into the
documentation, which notation you have to use.
libtidy has a limited set of supported charsets, which is defined within
the library, so we can't do anything about that.
http://php.net/tidy_set_encoding
--
Michael