Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
French characters sometimes shown as little square, sometimes OK
Old 11-13-2009, 11:10 AM French characters sometimes shown as little square, sometimes OK
Skilled Talker

Posts: 83
Trades: 0
Hello,

In Firefox, i notice the following webpage shows French characters like é showing OK in the middle text, but as a little square on the right text:

http://www.artofmodelling.be/pages/i...ng=fr&Itemid=8

This is a Joomla installation. The middle text comes out of the database and is a Joomla article. The right text however is from an home-made php include file (with define('','')) different for each language.

Any idea why it is shown correct in the middle, but not on the right?

Thanks!

Matt

Last edited by killerwhale65; 11-13-2009 at 12:00 PM..
killerwhale65 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-13-2009, 11:12 AM Re: French characters sometimes shown as little square, sometimes OK
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
set the character set of the page to UTF

http://www.w3.org/TR/html4/charset.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2009, 11:37 AM Re: French characters sometimes shown as little square, sometimes OK
Skilled Talker

Posts: 83
Trades: 0
Quote:
Originally Posted by chrishirst View Post
set the character set of the page to UTF

http://www.w3.org/TR/html4/charset.html
i tried this already, but it changed the problem around: the right colum was ok, the middle now displayed weird characters.
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 11-13-2009, 12:04 PM Re: French characters sometimes shown as little square, sometimes OK
Banned

Posts: 315
Name: Doug
Trades: 1
You have to set your character set on both files.

It's only including what it sees. In this case foreign characters in that include file that it doesn't know how to process.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 11-13-2009, 12:24 PM Re: French characters sometimes shown as little square, sometimes OK
Skilled Talker

Posts: 83
Trades: 0
Quote:
Originally Posted by marketingman100 View Post
You have to set your character set on both files.

It's only including what it sees. In this case foreign characters in that include file that it doesn't know how to process.
ok, and how do i do that?
just to be sure: the include file is just a php file containing a list of several define('',''), its not a html file.
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 11-13-2009, 12:56 PM Re: French characters sometimes shown as little square, sometimes OK
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
All text files have embedded character encoding. Make sure your editor is using UTF as well
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2009, 01:16 PM Re: French characters sometimes shown as little square, sometimes OK
Skilled Talker

Posts: 83
Trades: 0
Quote:
Originally Posted by chrishirst View Post
All text files have embedded character encoding. Make sure your editor is using UTF as well
ok, now once again: how?
killerwhale65 is offline
Reply With Quote
View Public Profile
 
Old 11-13-2009, 01:30 PM Re: French characters sometimes shown as little square, sometimes OK
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Dunno, I know how in the editor that I use but yours?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-13-2009, 05:04 PM Re: French characters sometimes shown as little square, sometimes OK
Banned

Posts: 315
Name: Doug
Trades: 1
Just add a Meta command with characterset UTF-8 to the php file also.

PHP files can generate HTML.

As for setting your editor, look under options for it's base charset.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to French characters sometimes shown as little square, sometimes OK
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43818 seconds with 12 queries