Strange Simbols

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MIGO
Forum Newbie
Posts: 9
Joined: Mon Mar 02, 2009 3:13 pm

Strange Simbols

Post by MIGO »

Anyone knows what causes the appearance of this -> 

Regards
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Strange Simbols

Post by onion2k »

Serving a page in one character set, but using a different character encoding in the HTML (or database) usually.
MIGO
Forum Newbie
Posts: 9
Joined: Mon Mar 02, 2009 3:13 pm

Re: Strange Simbols

Post by MIGO »

UTF-8 ? or ANSI ?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Strange Simbols

Post by onion2k »

Those are two encoding schemas, there are many, many more. To avoid problems with strange characters you need to make sure you're using the same character set everywhere in your application - from the database tables, to the database connection, to PHP, to the HTTP headers, to the HTML charset meta tag. A single difference anywhere in the chain can break things completely.
MIGO
Forum Newbie
Posts: 9
Joined: Mon Mar 02, 2009 3:13 pm

Re: Strange Simbols

Post by MIGO »

Ok thank you I will to that ;)

edit: I did that and its all goood :D, thank you mate.
Post Reply