Is it necessary to use — and – in XHTML or HTML5?

The W3C released an official response about when to use and when not to use character escapes which you can find here. As they are also the group that is in charge of the HTML specification, I think it’s best to follow their advice. From the section “When to Use Escapes” Syntax characters. There are … Read more

What is this INSANE space character??? (google chrome)

When I view this page’s source in Internet Explorer, or download it directly from the server and view it in a text editor, the first space character in question is formatted like this in the actual HTML: THIS character right here… " " Notice the   entity. That is Unicode codepoint U+00A0 NO-BREAK SPACE. Chrome is … Read more

How to set encoding in .getJSON jQuery

If you want to use $.getJSON() you can add the following before the call : $.ajaxSetup({ scriptCharset: “utf-8”, contentType: “application/json; charset=utf-8” }); You can use the charset you want instead of utf-8. The options are explained here. contentType : When sending data to the server, use this content-type. Default is application/x-www-form-urlencoded, which is fine for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)