Code of characterses Code of characterses
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Code of characterses

Started by newboxters, July 29, 2006, 04:17:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

newboxters

Hi!

I am with a problem of characterses for they be exhibited the words correctly with accent: (´ ~ ^ ´ ç) - Portuguese language. 
 
http://yourspot.com.br/galeria/index.php?theme=Yourspot 
 
The whole layout of the site is being exhibited correct, because actually I placed includes and iframes to open the top, menus and final of the site, of the layout already existent, because in that way it won't be necessary I to be altering several pages if one day I to change the visual of my site. 
 
But the main problem is the exhibition of the gallery in the center of that layout, because all the words with accents are with the wrong code: 
Usuários (Usuários), visualizações (Visualizações), álbuns (Álbuns)...
 
I already tried to use several codes... but I am not getting to find the solution to leave the whole site with the correct exhibition of its characterses.   ???
 
;)

Joachim Müller

Your page is a mess - you mustn't include full pages into themselves, they will cause a mess of nested <body>, <head>, <html> tags (that are suppossed to be unique). There's no valid doctype declaration nor charset declaration, that's why the display of special chars fail. To put it simpler: your invalid design confuses the browser (and it's actually a matter of taste, but to me it doesn't look OK). Take a look at the HTML output of the page and what the validator has to say.
Bottom line: you can't create a custom coppermine page by including full html pages.

newboxters

Ok, thank you for the warning, later I will arrange all the mistakes that there is in the page of the gallery. 
 
But what is considered main for the interpretation of the characterses it is of just placing a tag, being with the following structure: 

Quote<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="themes/yourspot/style.css" type="text/css" />
<title>yourSpot :: Galeria</title>
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
SITE - GALERY
</body>
</html>

Good, but in any way I already tried to alter the charset but the accents of the gallery are not interpreted correctly. 
 
http://yourspot.com.br/galeria/index.php?theme=Yourspot 
 
He could give me some clue, information to correct this, because all the external pages of the gallery appear with the correct accent (he/she sees the words that are in the place of the menu of the top and of the left menu, they are appearing correctly), but the whole gallery in the center of the layout the accents appear incorrect. 
 
;)

Nibbler

The gallery's content is in utf-8 but the stuff you added around it is in ISO-8859-1. You should convert the external stuff to be in UTF-8 and set the charset to UTF-8.

newboxters

Perfect! 
 
I am converting the characterses, leaving everything standardized. 
 
Thank you.