Still problems with the € sign
Moderator: mkoch227
Still problems with the € sign
Here is the encode whithin my language file:
/* Change the language name and encoding to your own language */
$hesklang['LANGUAGE']='Nederlands';
$hesklang['ENCODING']='ISO-8859-1';
But the script still breaks the € sign, what else could I check? The Demo site works fine?!
/* Change the language name and encoding to your own language */
$hesklang['LANGUAGE']='Nederlands';
$hesklang['ENCODING']='ISO-8859-1';
But the script still breaks the € sign, what else could I check? The Demo site works fine?!
Create a ticket and post the link to the problematic ticket to see exactly how the problem looks.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
The text i entered:
"Here is the test with the € sign!"
The link:
http://www.ace-europe.nl/helpdesk/ticke ... U6HRX3VP4P
"Here is the test with the € sign!"
The link:
http://www.ace-europe.nl/helpdesk/ticke ... U6HRX3VP4P
Strange one. No idea what this is. Maybe a server-side security rules of some sort (no idea what)?
As you already know, the demo works fine:
http://www.hesk.com/demo/ticket.php?track=VAVLYNE6PE
Try saving this code as "etest.php", upload to your server, open in browser, submit window and let me know what it says:
As you already know, the demo works fine:
http://www.hesk.com/demo/ticket.php?track=VAVLYNE6PE
Try saving this code as "etest.php", upload to your server, open in browser, submit window and let me know what it says:
Code: Select all
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
</head>
<body>
<form method="post" action="etest.php">
<input type="text" name="euro" value="Here is the test with the € sign!">
<input type="submit">
</form>
<p> </p>
<?php
if (!empty($_POST['euro']))
{
$euro = $_POST['euro'];
echo "POST RESULTS:<br><br>";
echo "Unprocessed: $euro<br>";
$euro = htmlspecialchars($euro);
echo "Process 1: $euro<br>";
$euro = preg_replace('/&(\#[0-9]+;)/','&$1',$euro);
echo "Process 2: $euro<br>";
}
?>
</body>
</html>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Looks good:
POST RESULTS:
Unprocessed: €
Process 1: €
Process 2: €
http://www.ace-europe.nl/helpdesk/etest.php
Is the ISO only in the language file?
(also have it wenn i select the Englisch and German language)
POST RESULTS:
Unprocessed: €
Process 1: €
Process 2: €
http://www.ace-europe.nl/helpdesk/etest.php
Is the ISO only in the language file?
(also have it wenn i select the Englisch and German language)
You should delete the test file.
So it looks like MySQL is the problem. Try adding this line in the inc/common.inc.php file: add it just below
So it looks like MySQL is the problem. Try adding this line in the inc/common.inc.php file:
Code: Select all
$in = str_replace('€','€',$in);
Code: Select all
$in = preg_replace('/&(\#[0-9]+;)/','&$1',$in);
Last edited by Klemen on Tue Feb 02, 2010 9:42 pm, edited 1 time in total.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
That strange character is the € sign, looks like some problems here too 

Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
haha 
Great The Fix worked for me! Iám Happy and going to bed now! Many thanks for the help!
http://www.ace-europe.nl/helpdesk/ticke ... B4134AS5YL
have removed the test file!

Great The Fix worked for me! Iám Happy and going to bed now! Many thanks for the help!
http://www.ace-europe.nl/helpdesk/ticke ... B4134AS5YL
have removed the test file!
Btw lupolo,
You should look at the code of your hesk footer. Seems the header of your normal pagesis added as the footer to your hesk page.
Greetings,
Henrie
You should look at the code of your hesk footer. Seems the header of your normal pages
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Footer</title>
<style type="text/css">
<!--
.style1 {
font-size: 14px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
}
-->
</style>
</head>
<body>
<div align="center">
<p> </p>
<p><a href="http://www.islonline.net/start/ISLLightClient?custom=ace-europe-nl" class="style1">Remote Support</a></p>
</div>
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Well, this will break the valid xhtml code of the page and could possibly cause troubles with the page in some browers.
There are better ways to add this code to your page, that doesn't break the valid xhtml code.
If it is for the Remote Support link, you could add the following valid code
Greetings,
Henrie
There are better ways to add this code to your page, that doesn't break the valid xhtml code.
If it is for the Remote Support link, you could add the following valid code
Code: Select all
<div>
<p> </p>
<p style="text-align: center;"><a href="http://www.islonline.net/start/ISLLightClient?custom=ace-europe-nl" style="font-size: 14px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;">Remote Support</a></p>
</div>
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Have modified it! Thank you.Henrie wrote:Well, this will break the valid xhtml code of the page and could possibly cause troubles with the page in some browers.
There are better ways to add this code to your page, that doesn't break the valid xhtml code.
If it is for the Remote Support link, you could add the following valid codeGreetings,Code: Select all
<div> <p> </p> <p style="text-align: center;"><a href="http://www.islonline.net/start/ISLLightClient?custom=ace-europe-nl" style="font-size: 14px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000;">Remote Support</a></p> </div>
Henrie
Can i also add the following:Klemen wrote:You should delete the test file.
So it looks like MySQL is the problem. Try adding this line in the inc/common.inc.php file:add it just belowCode: Select all
$in = str_replace('€','€',$in);
Code: Select all
$in = preg_replace('/&(\#[0-9]+;)/','&$1',$in);
Code: Select all
$in = str_replace('€','€',$in);
$in = str_replace('<','<',$in);
$in = str_replace('>','>',$in);
$in = str_replace('&','&',$in);
$in = str_replace('"','"',$in);
$in = str_replace('“','“',$in);
$in = str_replace('”','”',$in);
$in = str_replace('‘','‘',$in);
$in = str_replace('’','’',$in);
$in = str_replace('€','€',$in);
$in = str_replace(' ',' ',$in);
$in = str_replace('©','©',$in);
$in = str_replace('®','®',$in);
$in = str_replace('™','™',$in);
$in = str_replace('¨','¨',$in);
$in = str_replace('§','§',$in);
$in = str_replace('¹','¹',$in);
$in = str_replace('²','²',$in);
$in = str_replace('³','³',$in);
$in = str_replace('¼','¼',$in);
$in = str_replace('½','½',$in);
$in = str_replace('¾','¾',$in);
$in = str_replace('°','°',$in);
See also http://www.degraeve.com/reference/specialcharacters.php
Give it a try. But this is not normal, it must be a problem with your MySQL.
You could also try changing all instances of htmlspecialchars to htmlentities in the common.inc.php file and see if that helps.
You could also try changing all instances of htmlspecialchars to htmlentities in the common.inc.php file and see if that helps.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools