google chrome - Why strange characters appear on the website but not on html editor? -
i copy pasted following html code textbook text editor (sublime). opened html page in google chrome shown in image below.
<!doctype html> <html> <head> <title></title> </head> <body> <form action="processorder.php" method="post"><table border="0"> <tr bgcolor="#cccccc"> <td width="150">item</td> <td width="15">quantity</td> </tr> <tr> <td>tires</td> <td align="center"><input type="text" name="tireqty" size="3" maxlength="3" /></td> </tr> <tr> <td>oil</td> <td align="center"><input type="text" name="oilqty" size="3" maxlength="3" /></td> </tr> <tr> <td>spark plugs</td> <td align="center"><input type="text" name="sparkqty" size="3" maxlength="3" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" value="submit order" /></td> </tr> </table> </form> </body> </html>
the "Â" a-circumflex characters @ top of page not supposed there. why google chrome displays them, not text editor?
solved: strange characters appear because part of html document. not being displayed because text editor using utf-8 encoding.
the character "Â" called a-circumflex , displayed empty space " " when using utf-8 encoding, default encoding of sublime text 3.
Comments
Post a Comment