Connecting Tech Pros Worldwide Help | Site Map

wrong echo symbols - Help

abdoelmasry's Avatar
Member
 
Join Date: Oct 2006
Location: Egypt :: Ismailia
Posts: 87
#1: Nov 14 '08
Dear profs

i have strange error while trying to use echo with HTML code:

[PHP]echo "html code";[/PHP]

i got some strange symbols

see photo



Thank u
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#2: Nov 14 '08

re: wrong echo symbols - Help


This is your first warning. This post contains barely any information, no question, and falls under the 'crappy post' rule.

When you post a question, be as informative as possible.

Moderator.
abdoelmasry's Avatar
Member
 
Join Date: Oct 2006
Location: Egypt :: Ismailia
Posts: 87
#3: Nov 15 '08

re: wrong echo symbols - Help


im Sorry sir

Just do your must

move or replace it

i will not repeat this mistake
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#4: Nov 15 '08

re: wrong echo symbols - Help


Quote:

Originally Posted by abdoelmasry

im Sorry sir

Just do your must

move or replace it

i will not repeat this mistake

I'd rather you gave us more information on the problem so that we may help you.

Markus.
abdoelmasry's Avatar
Member
 
Join Date: Oct 2006
Location: Egypt :: Ismailia
Posts: 87
#5: Nov 19 '08

re: wrong echo symbols - Help


Dear Markus

i solve it but need to share solution:

i have html templates saved in text files ,

the files encoding should be similar ,

my text files stored as ANSI encoding but some files were stored as UTF

when i explode template contents and try to view it using ECHO

it shows strange symplos due to encoding difference

after using the same encoding it works good

Thank U
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#6: Nov 20 '08

re: wrong echo symbols - Help


Heya, abdoelmasry.

You might find this article to be of interest:
http://inspired_tmu.web.aplus.net/20...-utf-8-part-2/
Reply