Jump to content

Character encoding issues


co.ador

Recommended Posts

I am facing the following problem and it's that when I change the meta from charset=ISO-8859-1" to "utf-8" then the characters above don't appear.

 

For instance instead of Pesuñas it appear Pesuas without the "ñ"

 

 

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

 

the actual charset set up for the entire website is

 

Quote:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<html>

<head>

<link type="text/css" href="../stylesheets/shoeswebpageprueba.css" rel="stylesheet" media="all" />

<title>NYhungry</title>

 

<script type="text/javascript" src="scripts/prototype.js"></script>

<script type="text/javascript" src="scripts/rating.js"></script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>

 

 

<script>

$(function()

{

var default_image = $('td.largethumb img').attr('src');

$('table.smallthumbs a').mouseover(function() { $('td.largethumb img').attr('src', $('img', this).attr('src')); });

});

</script>

 

 

</head>

Notice that the <meta> is outside the html tags

 

Thank you...

 

How can I change the meta from charset=ISO-8859-1" to "utf-8" and still having able to have those character displaying without disappearing?

Link to comment
https://forums.phpfreaks.com/topic/169435-character-encoding-issues/
Share on other sites

header('Content-type: text/html;charset=utf-8'); If I use this header with charset=utf-8 then it won't display the characters

 

For instance instead of Pesuñas it appear Pesuas without the ñ

 

The e.g above occurs when I charset=uft-8 how can I still display those characters using uft-8 Someone talked to me about htmlentities but how can I build an htmlentities to display this characters 

 

é, ', ñ, ú, ó é

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.