how to get rid of crappy characters

B

boneless

Hi all,

when I put a character like é or á or ö on my website, it shows up all
crappy. I think this may have something to do with the charset, but can
anyone tell me what to do to change this? I mean what to do, so the site
shows a ë really as ë.

Problem started when I switched from blogger to B2 (which uses php).
I've tried adding the line
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
but that don''t do the trick.

Anyone know of any solution?

Thanks
Boneless
www.boneless.nl
 
J

Jukka K. Korpela

boneless said:
when I put a character like é or á or ö on my website, it shows up
all crappy.

Do you expect us to help without seeing a URL of a demonstration of the
problem?
I think this may have something to do with the charset,

It may, or it may not.
Problem started when I switched from blogger to B2 (which uses php).

Means nothing to me. Or to a browser - what matters is what it produces.
I've tried adding the line
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"> but that don''t do the trick.

Well, to begin with, if the server actually sends a Content-Type header
with a charset parameter, then the browser must (by specification) ignore
and actually ignores (by existing implementations) that <meta> tag.

Do you see now why a URL is needed?
 
K

Kim André Akerø

boneless said:
Hi all,

when I put a character like é or á or ö on my website, it shows up all
crappy. I think this may have something to do with the charset, but can
anyone tell me what to do to change this? I mean what to do, so the site
shows a ë really as ë.

Problem started when I switched from blogger to B2 (which uses php).
I've tried adding the line
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
but that don''t do the trick.

Anyone know of any solution?

You might be better off using entities.
http://www.w3schools.com/html/html_entitiesref.asp

é = &eacute;
á = &aacute;
ö = &ouml;
ë = &euml;

Just to pick the ones you mentioned in your original post.
 
J

Jukka K. Korpela

Neal said:
ê displays properly. I find no instances of "é or á or ö" on your
page, either in source or page, nor as a direct character or an entity.

Indeed. And the page is declared (both in HTTP headers and in a <meta>
tag) as being in UTF-8 encoding, so my wild guess is that the OP tried to
enter accented letters "just by typing them" - using a program that
enters them in ISO 8859-1 (or windows-1252 or whatever) encoding. They
won't work then of course (but character references and entity references
work).
 
S

Sid Ismail

: > Do you see now why a URL is needed?
:
: Excuses and even more excuses!
: The url is www.boneless.nl


Excuses? What's this - your personal helpdesk? Paid for?

Sid
 
G

Guest

Hi all,

when I put a character like é or á or ö on my website, it shows up all
crappy. I think this may have something to do with the charset, but can
anyone tell me what to do to change this? I mean what to do, so the site
shows a ë really as ë.

How are these characters represented in the generated HTML? Are they
literals? Does the HTML used named entities (&egrave;)? Or how about
numeric entities (é)?

You will likely get better mileage with entities, especially if the
character literal is not defined in your page's charset.

For my Hawaiian pages, I have to use UTF-8 for everything to show up
properly.

HTH,
La'ie Techie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,844
Latest member
JudyGvh32

Latest Threads

Top