PEAK XOOPS - Re: Re: get_html_translation_table()及瑹 in englishin japanese

Re: Re: get_html_translation_table()及瑹

Target News
Subject A Trap with get_html_translation_table()
Summary A Trap with get_html_translation_table()You may know unhtmlspecialchars() has implemented into PHP.With former versions of PHP, we had made such a custom function using get_html_translation_table() like this: function my_unhtmlspecialchars( $text , $q...

List posts in the topic

none Re: Re: get_html_translation_table()及瑹

msg# 1.2.1
depth:
2
Previous post - Next post | Parent - No child | Posted on 2008/7/2 12:17
GIJOE  Gunnery Sergeant   Posts: 4110
hi vaughan.

Quote:

on a sidenote: we also discovered when using UTF-8 charsets fully, we ran into a few small issues with icms, which will affect xoops aswell.

in certain conditions, it is not enough to just use htmlspecialchars. but you also need to set which characterset you are using aswell.
Which conditions?

As long as I read the source code of PHP in ext/standard/html.c, the third parameter -charset- looks almost non-sense.

And I've never experienced the trouble the charset for htmlspecialchars().
Votes:10 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!