Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Encoding Issues

I'm using the next code jQuery code -

         success: function(result){     
          $('#taglineResults').text(result) ;
           alert('אבג');
         }

as you can see the content in the alert is in hebrew , but the alert I get is three rectangles. I've tried using unescape and decodeUri but it didn't help, how could I solve this problem?

Thanks in advnace

like image 809
Itamar Avatar asked Apr 13 '26 03:04

Itamar


1 Answers

this 100% works. Change encoding of your source code file to utf-8. You can use notepad++ for this. Then rewrite your text in hebrew again and save.

You will see hebrew in alert.

like image 136
Scherbius.com Avatar answered Apr 15 '26 16:04

Scherbius.com



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!