Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1060

ñ enye spanish character not showing properly in my database [duplicate]

$
0
0

I have a script that can upload files, but whenever a filename has ñ it doesnt show properly or the file is changing its name. For example i have ñino.jpg when i upload it, it shows as niño.jpg, i tried putting:

<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 

But still does't work, i tried changing the table in my database collation utf8_spanish_ci from latin1_swedish but still doesn't work

My header:

<?phprequire('db.php');include("auth.php");?><?php  header('content-type:text/html;charset=utf-8');?><html><head><title>Masterlist - Private Secondary </title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /><script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script><script src="https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script>       <link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css" /><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script><link href="css/bootstrap.min.css" rel="stylesheet"><link href="css/style.css" rel="stylesheet"><link href="css/dashboard.css" rel="stylesheet"></head>

Viewing all articles
Browse latest Browse all 1060

Trending Articles