I am currently developing a project in Javascript that utilizes AngularJS. Upon making an HTTP request to retrieve data, I notice that all characters are displaying properly. For instance, when I receive a string through AJAX like "räksmörgås", it appears correctly in the console but with some strange characters.
When I use console.log("räksmörgås")
, the result is: rksmrgs
I am wondering if this issue is related to file type encoding or if JavaScript strings being UTF-16 encoded is causing this problem?