I am trying to validate the site for html errors with https://validator.w3.org

My question is about xajax and the error for output : <script type="text/javascript" charset="UTF-8">
"Element script must not have attribute charset unless attribute src is also specified."

First solution is to remove charset="UTF-8" so I would like to ask about that.