1

I use a lot of JavaScript in SharePoint, but today I came across a problem that I do not understand. Every time I use accents in a script such as in an alert, it returns the following strange symbol: �.

enter image description here

Only I'm using jQuery and the mask as libraries. My library does not have anything if I put an alert ('hi') it returns the 'í' with symbol �.

enter image description here

0

I know this article is a bit old, but it might help. Replace your accented character with its octal value.

Alt-m   \355   ED   U+00ED   í   í  small i, acute accent

Else, please try to use UTF8. Add the following in <script type=... charset= ...> :

charset="utf-8"

(source StackOverflow.SE)

| improve this answer | |
  • I know this functionality, it's called ASCII table, but I can not use because it is dynamic, the user enters the warning, then have no way to use the ASCII table. And already used the charset, but it did not work. – Renanfdo Sep 10 '14 at 13:07
  • the alert displays the ASCII characters Example: h&iacute; – Renanfdo Sep 10 '14 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.