LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-02-2005, 02:37 PM   #1
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Rep: Reputation: 30
Character encoding problems


Hi all,

I hav a urgent problem to solve. This is my html code:
Code:
<html>
<head></head>
<body>
<br>
<br>
<br>
</body>
</html>
and this is what the browser firefox or konqueror shows to me:

Code:
ã
é
óó
My apache is 2.0.54 and my php 4.4.0

If i try to open the html file trought the browser, appears the same error.

Does anyone here can help me???
 
Old 08-02-2005, 03:03 PM   #2
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: Distro Astro 1.02, Windows 7
Posts: 123

Rep: Reputation: 15
Your server is sending out HTML as one type of character encoding and your browser is set to a different type. They need to match. Try setting character encoding to auto-detect and make sure your server is sending correct encoding headers.
 
Old 08-02-2005, 03:25 PM   #3
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Original Poster
Rep: Reputation: 30
i think the problem is not with my browser. Because when i start the jsp application on the browser, everything works fine. Maybe a exploit can make this problem happens, or i m wrong about this teory?
 
Old 08-02-2005, 03:31 PM   #4
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: Distro Astro 1.02, Windows 7
Posts: 123

Rep: Reputation: 15
It's an encoding issue. Like I said, your server is sending one thing and your browser is reading another.

Add <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> to your page in the <HEAD> section and set your browser to match. It should work.
 
Old 08-02-2005, 03:36 PM   #5
eduac
Member
 
Registered: Jun 2003
Distribution: Arch - www.archlinux.org
Posts: 186

Original Poster
Rep: Reputation: 30
nops...the same problem:

Code:
ã
é
óó


it is too stranged
 
Old 08-02-2005, 06:48 PM   #6
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: Distro Astro 1.02, Windows 7
Posts: 123

Rep: Reputation: 15
Try encoding the characters. Don't directly input accented characters. What happens then?

http://www.ulujain.org/misc/entities.shtml
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Putty and Character encoding problems rhoekstra Linux - General 2 07-30-2007 03:46 PM
Acroread, Character Encoding Problems, and plug-in setup wrw3 Linux - Software 0 12-15-2004 01:17 AM
C Multibyte character encoding ugenn Programming 0 12-14-2003 07:44 AM
character encoding - mandrake 9.2 Osten Mandriva 1 11-21-2003 11:09 AM
Unsupported Character Encoding yenonn Linux - Software 3 04-28-2003 05:25 AM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration