problem loading image in Internet Explorer (10) while at chrome & firefox it's ok when the username parameter is in hebrew (rtl language) the problem occurs for css and html:
background: 0 url('php/ajax/ajax-user-image-read.php?username=רועי') no-repeat';
img src="php/ajax/ajax-user-image-read.php?username=רועי" alt=""
both works ok for english
background: 0 url('php/ajax/ajax-user-image-read.php?username=roee') no-repeat';
img src="php/ajax/ajax-user-image-read.php?username=roee" alt=""
when hebrew I receive the username parameter as ???? at the server side.
my html page has meta charset="UTF-8"
and all other hebrew works ok.
I don't think the php code will help here because it receives question marks and not valid data but here it is:
<?php
session_start();
require_once '../gw-database.php';
require_once '../gw-functions/gw-functions-user.php';
if (isset($_SESSION['username'])) {
if (isset($_GET['username'])) {
if (!empty($_GET['username'])) {
$username = ('current' === $_GET['username']) ? $_SESSION['username'] : $_GET['username'] ;
$image = userImageGet($username);
if (false !== $image) {
header('Content-Type: '.$image['type']);
echo $image['image'];
}
else {
logRunTimeMessage($_SESSION['username'], 'server', $error, 'In file '.strrchr(__FILE__, "\\").' at line '.__LINE__.' - Error fail to get user image', time());
}
}
}
}