Polytechnique.org TEAM :
Pierre Habouzit <pierre.habouzit@m4x.org> project manager
- Jean Sébastien Bedo <jean-sebastien.bedo@m4x.org>
+ Jean Sébastien Bedo <jean-sebastien.bedo@m4x.org>
Florent Bruneau <florent.bruneau@m4x.org>
Sophie Charbonnier <sophie.charbonnier@m4x.org>
Yann Chevalier <yann.chevalier@m4x.org>
Jean-Marc Coic <jean-marc.coic@m4x.org>
Pascal Corpet <pascal.corpet@m4x.org>
Guillaume Gommard <guillaume.gommard@m4x.org>
- Jeremy Lainé <jeremy.laine@m4x.org>
+ Jeremy Lainé <jeremy.laine@m4x.org>
Raphael Marichez <raphael.marichez@m4x.org>
Vincent Palatin <vincent.palatin@m4x.org>
- #484: Sort Table Editor by clicking on column title. -Car
* Core:
- - #473: Use 'événement' instead of 'évènement'. -FRU
+ - #473: Use 'événement' instead of 'évènement'. -FRU
- #475: More understandable bug report form. -FRU
- #545: Fix encoding issues with some Windows special chars -FRU
- #548: More informations for recovery for homonyms. -FRU
* Car: Pascal Corpet (Caribou) <pascal.corpet@m4x.org>
* CAT: Florian El Ahdab (LeChat) <florian.el-ahdab@m4x.org>
- * FAL: Raphaël Marichez (Falco) <raphael.marichez@m4x.org>
+ * FAL: Raphaël Marichez (Falco) <raphael.marichez@m4x.org>
* FRU: Florent Bruneau (Fruneau) <florent.bruneau@m4x.org>
- * JS : Jean Sébastien Bedo <jean-sebastien.bedo@m4x.org>
+ * JS : Jean Sébastien Bedo <jean-sebastien.bedo@m4x.org>
* MC : Pierre Habouzit (MadCoder) <pierre.habouzit@m4x.org>
* mYk: Aymeric Augustin (mYk) <aymeric.augustin@m4x.org>
* OG : Olivier Guillaumin <olivier.guillaumin@m4x.org>
- * SHK: Jeremy Lainé (Sharky) <jeremy.laine@m4x.org>
+ * SHK: Jeremy Lainé (Sharky) <jeremy.laine@m4x.org>
* VP : Vincent Palatin <vincent.palatin@m4x.org>
- * XdX: Alexandre Hô (XandreX) <alexandre.ho@m4x.org>
+ * XdX: Alexandre Hô (XandreX) <alexandre.ho@m4x.org>
================================================================================
-vim:et:ts=4:sw=4:tw=80:
+vim:et:ts=4:sw=4:tw=80:enc=utf-8:
}
$this->register_outputfilter('hide_emails');
$this->addJsLink('wiki.js');
- header("Accept-Charset: iso-8859-15, latin9, us-ascii, ascii");
+ header("Accept-Charset: utf-8");
if (!$globals->debug) {
error_reporting(0);
$txt .= ';'.$param['param'];
if (isset($param['value'])) {
if ($txt) $txt .= ':';
- $txt .= utf8_encode(
- preg_replace('/[,;:]/', '\\\\$0',
- preg_replace("/(\r\n|\r|\n)/", '\n', $param['value'])));
+ $txt .= preg_replace('/[,;:]/', '\\\\$0', preg_replace("/(\r\n|\r|\n)/", '\n', $param['value']));
}
$length = strlen($txt);
$endline = "\n";
public function toHtml()
{
- $title = "<h2 class='xorg_nl'><a id='art{$this->_aid}'></a>".htmlentities($this->title()).'</h2>';
+ $title = "<h2 class='xorg_nl'><a id='art{$this->_aid}'></a>".pl_entities($this->title()).'</h2>';
$body = enriched_to_text($this->_body,true);
$app = enriched_to_text($this->_append,true);
}
}
- $errstr = htmlentities($errstr);
+ $errstr = utf8_encode(htmlentities($errstr));
$GLOBALS['pl_errors'][] =
"<div class='phperror'>".
"<strong>{$errortype[$errno]}</strong> <em>$errstr</em><br />".
http_redirect($globals->baseurl . '/' . pl_url($path, $query, $fragment));
}
+function pl_entities($text, $mode = ENT_COMPAT)
+{
+ return htmlentities($text, $mode, 'UTF-8');
+}
+
+function pl_entity_decode($text, $mode = ENT_COMPAT)
+{
+ return html_entity_decode($text, $mode, 'UTF-8');
+}
+
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
header("Pragma: ");
header("Cache-Control: ");
- header("Content-type: text/x-vcard; charset=iso-8859-15");
+ header("Content-type: text/x-vcard; charset=UTF-8");
header("Content-Transfer-Encoding: 8bit");
}
}
WHERE $where
ORDER BY nom");
- $res = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n<membres>\n\n";
+ $res = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<membres>\n\n";
while (list ($prenom1,$nom1,$email1) = $all->next()) {
$res .= "<membre>\n";
$res .= "</membres>\n\n";
- header('Content-Type: text/xml; charset="ISO-8859-1"');
+ header('Content-Type: text/xml; charset="UTF-8"');
echo $res;
}
exit;
function handler_tips(&$page, $tips = null)
{
- header('Content-Type: text/html; charset="ISO-8859-15"');
+ header('Content-Type: text/html; charset="UTF-8"');
$page->changeTpl('include/tips.tpl', NO_SKIN);
$page->assign('tips', $this->get_tips($tips));
}
function handler_ajax(&$page, $list = null)
{
- header('Content-Type: text/html; charset="iso-8859-15"');
+ header('Content-Type: text/html; charset="UTF-8"');
$domain = $this->prepare_client($page);
$page->changeTpl('lists/liste.inc.tpl', NO_SKIN);
if (Get::has('unsubscribe')) {
function _list_header_decode($charset, $c, $str) {
$s = ($c == 'Q' || $c == 'q') ? quoted_printable_decode($str) : base64_decode($str);
- $s = iconv($charset, 'iso-8859-15', $s);
+ $s = iconv($charset, 'UTF-8', $s);
return str_replace('_', ' ', $s);
}
{
$page->changeTpl('platal/changeLog.tpl');
- $clog = htmlentities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
+ $clog = pl_entities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
$clog = preg_replace('!(#[0-9]+(,[0-9]+)*)!e', 'bugize("\1")', $clog);
$clog = preg_replace('!vim:.*$!', '', $clog);
$page->assign('ChangeLog', $clog);
function handler_region(&$page, $country = null)
{
- header('Content-Type: text/html; charset="iso-8859-15"');
+ header('Content-Type: text/html; charset="UTF-8"');
require_once("geoloc.inc.php");
$page->ChangeTpl('search/adv.region.form.tpl', NO_SKIN);
$page->assign('region', "");
function handler_grade(&$page, $school = null)
{
- header('Content-Type: text/html; charset="iso-8859-15"');
+ header('Content-Type: text/html; charset="UTF-8"');
$page->ChangeTpl('search/adv.grade.form.tpl', NO_SKIN);
$page->assign('grade', '');
$this->get_diplomas($school);
return PL_NOT_FOUND;
}
- header('Content-type: text/x-csv; encoding=iso-8859-1');
+ header('Content-type: text/x-csv; encoding=UTF-8');
header('Pragma: ');
header('Cache-Control: ');
function handler_admin_member_new_ajax(&$page)
{
- header('Content-Type: text/html; charset="iso-8859-15"');
+ header('Content-Type: text/html; charset="UTF-8"');
$page->changeTpl('xnetgrp/membres-new-search.tpl', NO_SKIN);
list($nom, $prenom) = str_replace(array('-', ' ', "'"), '%', array(Env::v('nom'), Env::v('prenom')));
$where = "perms = 'pending'";
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+require_once 'platal.inc.php';
function smarty_compiler_icon($tag_attrs, &$compiler)
{
extract($compiler->_parse_attrs($tag_attrs));
if (isset($title)) {
- $title = 'title="'.htmlentities(trim($title, '\'"'), ENT_QUOTES).'" ';
+ $title = 'title="'. pl_entities(trim($title, '\'"'), ENT_QUOTES).'" ';
}
- $name = htmlentities(trim($name, '\'"'), ENT_QUOTES);
+ $name = pl_entities(trim($name, '\'"'), ENT_QUOTES);
$name = "images/icons/$name.gif";
if ($full) {
global $globals;
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+require_once 'platal.inc.php';
function select_options($table,$valeur,$champ="text",$pad=false,
$where="",$join="",$group="")
if (!is_null($optgrp)) {
$html .= '</optgroup>';
}
- $html .= '<optgroup label="' . htmlentities($my_grp, ENT_QUOTES) . '">';
+ $html .= '<optgroup label="' . pl_entities($my_grp, ENT_QUOTES) . '">';
$optgrp = $my_grp;
}
$html .= sprintf("<option value=\"%s\" %s>%s</option>\n",
{/if}
{else}
{if $is_mail}
-<?xml version="1.0" encoding="iso-8859-15"?>
+<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{/if}
{else}
{if $is_mail}
-<?xml version="1.0" encoding="iso-8859-15"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
{* *}
{**************************************************************************}
-<?xml version="1.0" encoding="iso-8859-15"?>
+<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="{$globals->baseurl}/" />
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Les associations polytechniciennes" />
<meta name="keywords" content="Ecole polytechnique, associations polytechniciennes, groupes X, binets" />