Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 03-29-2005, 08:00   #1 (permalink)
elyob
Civilians

 
Default Character encoding

I'm redevloping one of my sites which will contain things like french
characters ... So, what should I set my MySQL database to? For some reason,
my newly setup localhost databases set the collation to latin1_swedish_ci,
however I have manually set this to utf8_general_ci on the tables. The
database looks like it's holding the characters fine, so it must be the
header in my document. I'm not so much involved with front end devlopment,
so the CSS stuff isn't something that I work on, any help appreciated ..
here's my header ...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-GB">

At the moment these characters are coming out as '?' and the w3 validator
fails. Should I consider using charset iso-8859-1 instead of UTF-8?

"
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause
problems for some text editors and older browsers. You may want to consider
avoiding its use until it is better supported.
Sorry, I am unable to validate this document because on lines 78, 84 it
contained one or more bytes that I cannot interpret as utf-8 (in other
words, the bytes found are not valid values in the specified Character
Encoding). Please check both the content of the file and the character
encoding indication.

"

Thanks


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 03-29-2005, 08:00   #2 (permalink)
elyob
Civilians

 
Default Re: Character encoding

Forgot to add this part of my header ...

<meta http-equiv="content-type" content="application/xhtml+xml;
charset=UTF-8" />



 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-2005, 08:00   #3 (permalink)
jorj
Civilians

 
Default Re: Character encoding

elyob wrote:

>Forgot to add this part of my header ...
>
> <meta http-equiv="content-type" content="application/xhtml+xml;
>charset=UTF-8" />
>
>
>
>
>

French can use other character encding than UTF-8 which is more suitable
for asian languages. Use your own (french) encoding both in your tables
and into your pages.

--
Jorj

Moderator SEO forum http://forum.bitcontent.com
Webmaster community focusing on Internet marketing and website development issues
--
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-2005, 12:00   #4 (permalink)
GreyWyvern
Civilians

 
Default Re: Character encoding

And lo, elyob didst speak in alt.www.webmaster:

> For some reason,
> my newly setup localhost databases set the collation to
> latin1_swedish_ci,
> however I have manually set this to utf8_general_ci on the tables. The
> database looks like it's holding the characters fine, so it must be the
> header in my document.


There is no need to change the character encoding of your MySQL tables
unless you plan to do some encoding specific operations on the data.
latin1_swedish_ci is perfectly capable of storing and delivering UTF-8
encoded characters in their component bits.

As long as your input pages are UTF-8 encoded and your output pages are
UTF-8 encoded, the characters will display fine using the
latin1_swedish_ci table charset.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollory that nothing is ridiculous.
- http://www.greywyvern.com/ringmaker - Orca Ringmaker: Host a web ring
from your website!
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-2005, 12:00   #5 (permalink)
MGW
Civilians

 
Default Re: Character encoding

So what's the best encoding to use if a site only has English?

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-2005, 12:00   #6 (permalink)
Dylan Parry
Civilians

 
Default Re: Character encoding

MGW wrote:
> So what's the best encoding to use if a site only has English?


ISO-8859-1

--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-29-2005, 16:00   #7 (permalink)
Eric Jarvis
Civilians

 
Default Re: Character encoding

Dylan Parry usenet@dylanparry.com wrote:
> MGW wrote:
> > So what's the best encoding to use if a site only has English?

>
> ISO-8859-1
>


Which is also perfectly acceptable for a site that is in Engliah and
French. It covers all the Latin languages.

--
eric
www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Character encoding failes. Wim Cossement Web Design 1 02-23-2005 12:00
character encoding? T.J. Web Design 5 01-24-2005 00:00
Encoding on PocketPC? Matija Microsoft Applications 1 07-24-2004 00:07
Cyrillic encoding in Powerpoint 97 Microsoft Applications 1 07-10-2004 08:00
HTML source encoding! Ammar Web Design 4 06-15-2004 12:01


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 04:52.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 0.85332 seconds with 18 queries