-
Retrieving test from mysql as "�"
Im a noob with php,
but certain texts on my website shows up as �, and idk why! I heard it has to do with encoding, but im not sure what that is or how to fix it
-
-
are you writing the text or code in a text editor or ms word or something. The symbol is cause the browser is getting a character encoding and the symbols in the text do not have a html equivalent in the encoding that was given. You should be able to know what the actual symbols should be and you could simply replace those with their html equivalents and then they will show properly.
-
-
Somewhere in the system, the character encodings do not match. Your MySQL table encoding and your HTML encoding are the most likely problems. Change one or the other to match and it should be fixed. Note that this may not fix your existing data, but it will make it work for the future. For existing data, it may be very difficult to fix but you can try to convert between encodings if you can read it anywhere (such as PHPMyAdmin?) correctly.
The first step is to make sure that you have a meta tag setting the character encoding in your HTML.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks