PHP MySQL utf8 characters text retrieval test

PHP correctly retrieves utf8 characters from MySQL columns using this code :

	$connection = mysql_connect($host,$user,$password) 
 	mysql_query("set names 'utf8'",$connection);
 	mysql_select_db($database,$connection) 
	$sql="SELECT * FROM Table";
	$sql_result=mysql_query($sql,$connection)
	
	Here is the result where French, Greek and Cyrillic characters are mixed and displayed as they should.
	
	However I did not solve yet how to URL encode the MySQL retrieved multi-bytes image strings
	to provide the client with working links to the images on the result page.

Folder image file title :
1 Hestia (Ἑστία) Fire Goddess (Greek) or Vesta (Roman). 
  Vesta is the goddess of the sacred fires of the hearth, the heart of spiritual and emotional stability in your home.
  Her cult goes back to the 7th century BC. 11. 20090214.jpg
Is PHP rawurlencoded as :
%2Fpyro%2FFire%2FGoddesses%2F1%20Hestia%20%28 %E1%BC%99%CF%83%CF%84%CE%AF%CE%B1 %29%20Fire%20Goddess%20%28Greek%29%20or
%20Vesta%20%28Roman%29.%20Vesta%20is%20the%20goddess%20of%20the%20sacred%20fires%20of%20the%20hearth%2C%20the%20heart%20of%20
spiritual%20and%20emotional%20stability%20in%20your%20home.%20Her%20cult%20goes%20back%20to%20the%207th%20century%20BC.%2011.
%2020090214.jpg
instead of being encoded as :
/pyro/Fire/Goddesses/1%20Hestia%20( %CE%95%CC%94%CF%83%CF%84%CE%B9%CC%81%CE%B1 )%20Fire%20Goddess%20(Greek)%20or%20
Vesta%20(Roman).%20Vesta%20is%20the%20goddess%20of%20the%20sacred%20fires%20of%20the%20hearth,%20the%20heart%20of%20spiritual
%20and%20emotional%20stability%20in%20your%20home.%20Her%20cult%20goes%20back%20to%20the%207th%20century%20BC.%2011.
%2020090214.jpg
"; $host = "127.0.0.1"; $user = "ahLesCrocos"; $password = "surLesBords"; $database = "pyroImages"; $connection = mysql_connect($host,$user,$password) or die("Could not connect: ".mysql_error()); // mysql_query(" ", $connection); // mb_language('uni'); // mb_internal_encoding('utf8'); // mysql_select_db('pyroImages', $connection); mysql_query("set names 'utf8'",$connection); mysql_select_db($database,$connection) or die("Error in selecting the database:".mysql_error()); $sql="SELECT * FROM Full"; $sql_result=mysql_query($sql,$connection) or exit("Sql Error".mysql_error()); $sql_num=mysql_num_rows($sql_result); echo ""; echo ""; echo ""; echo ""; while($sql_row=mysql_fetch_array($sql_result)) { $Sequence=$sql_row["sousSequence"]; $Category=$sql_row["Category"]; $Denomination=$sql_row["Denomination"]; $imaFld=$sql_row["imaFld"]; $URL=$sql_row["URL"]; echo ""; echo ""; echo ""; } echo "
Seq. Category Denomination
".$Sequence."".$Category."".$Denomination."
" // mysql_client_encoding(); ?>