Special characters on titles when prinitng Browse Form
Posted: Tue Mar 15, 2016 8:16 pm
When prinitng a browse form with titles that include special characters (accented letters) these are removed by the following line contained in the nuBuildTable function of the nuapi.php file:
So I made the following modification to include accented letters:
Lastly, I added the header tags inside the $h variable of nurunprintbrowse.php file like this:
And now it's working fine. Hope it helps.
Kind regards
Code: Select all
$nuObject->title = trim(preg_replace("/[^0-9a-zA-Z _]/", "", $R->sbr_title));
Code: Select all
$nuObject->title = trim(preg_replace("/[^0-9a-zA-ZÑñáéíóúÁÉÍÓÚüÜ _]/", "", $R->sbr_title));
Code: Select all
$h .= "
<html>
<head>
<meta http-equiv='Content-type' content='text/html;charset=UTF-8'>
<style>
table {border-width:1px;border-style:solid;border-color:grey}
tr {border-width:1px;border-style:solid;border-color:grey}
th {border-width:1px;border-style:solid;border-color:grey;background-color:lightgrey}
td {border-width:1px;border-style:solid;border-color:grey}
.id {border-width:0px;border-style:none;width:1px;font-size:0px}
$style
</style>
</head>
<body>
$table
</body>
</html>
Kind regards