Hi Steve,
just the special chars from 2nd select list come out as ?
I have at the very beginning of my conf.ini
oe=UTF-8
ie=UTF-8
I have my cutom action like this:
$app =& Dataface_Application::getInstance();
header('Content-type: text/javascript; charset='.$app->_conf['oe']);
//$app->_conf['oe'] stores the output encoding for the application which is probably UTF-8 right now
// Dient der Ausgabe von Sonderzeichen in UTF-8 Codierung
// actions_get_types sucht die zugehšrigen typen einer gewŠhlten typgruppe
class actions_get_types {
ÊÊÊ function handle(&$params){
ÊÊÊÊÊÊÊ if ( isset($_REQUEST['type_group']) ){
ÊÊÊÊÊÊÊÊÊÊÊ $sql = "select l_tid, L_GID, type from list_event_type where L_GID='".addslashes($_REQUEST['type_group'])."'";
ÊÊÊÊÊÊÊ } else {
ÊÊÊÊÊÊÊÊÊÊÊ $sql = "select l_tid, L_GID, type from list_event_type";
ÊÊÊÊÊÊÊ }
ÊÊÊÊÊÊÊ $res = mysql_query($sql, df_db());
ÊÊÊÊÊÊÊ if ( !$res ) trigger_error(mysql_error(df_db()), E_USER_ERROR);
ÊÊÊÊÊÊÊ header('Content-type: text/javascript');
ÊÊÊÊÊÊÊ echo '[';
ÊÊÊÊÊÊÊ $values = array();
ÊÊÊÊÊÊÊ while ( $row = mysql_fetch_assoc($res) ){
ÊÊÊÊÊÊÊÊÊÊÊ $values[] =Ê "{l_tid:'".$row['l_tid']."', type: '".addslashes($row['type'])."'}";
ÊÊÊÊÊÊÊ }
ÊÊÊÊÊÊÊ echo implode(',',$values);
ÊÊÊÊÊÊÊ echo ']';
ÊÊÊÊÊÊÊ exit;
ÊÊÊ }
ÊÊÊ
}
Nevertheless I do not get the right chars. And when I look into the source of my html, it is still:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and in the head
Somehow frustrating I think. I t seems as if nothing ever changes.
Markus