Answered by:
French accents are not displaying correctly in javascript alert message

Question
-
Hi,
I am getting the value form the server is DE LA GAIETÉ. I want to display the same in the page, but French accents are not displaying correctly in javascript alert message, it is displaying like DE LA GAIETÉ (html code for É)
I tried escape, unescape, encodeURI, decodeURI... but its not working. Can anyone please suggest the solution.
- Moved by Rich Prescott Thursday, March 15, 2012 11:09 PM Javascript (From:The Official Scripting Guys Forum!)
Thursday, March 15, 2012 7:48 AM
Answers
-
Hi,
I am getting the value form the server is DE LA GAIETÉ. I want to display the same in the page, but French accents are not displaying correctly in javascript alert message, it is displaying like DE LA GAIETÉ (html code for É)
I tried escape, unescape, encodeURI, decodeURI... but its not working. Can anyone please suggest the solution.
If this is for a web page then you are in teh wrong forum. Try the web developers forum.
In WSH this is set by the OS settings for your version of WIndows. n aa web page it is set by the web page characterset.
¯\_(ツ)_/¯
- Proposed as answer by Ed Price - MSFTMicrosoft employee Monday, April 9, 2012 5:11 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, April 16, 2012 8:10 AM
Thursday, March 15, 2012 9:17 AM -
IE: http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads
VS Express: http://social.msdn.microsoft.com/Forums/en-US/vswebdeveloperexpresspt/threads
VS 2010: http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwebdev/threads
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Monday, April 9, 2012 5:18 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, April 16, 2012 8:09 AM
Monday, April 9, 2012 5:18 AM
All replies
-
Hi,
I am getting the value form the server is DE LA GAIETÉ. I want to display the same in the page, but French accents are not displaying correctly in javascript alert message, it is displaying like DE LA GAIETÉ (html code for É)
I tried escape, unescape, encodeURI, decodeURI... but its not working. Can anyone please suggest the solution.
If this is for a web page then you are in teh wrong forum. Try the web developers forum.
In WSH this is set by the OS settings for your version of WIndows. n aa web page it is set by the web page characterset.
¯\_(ツ)_/¯
- Proposed as answer by Ed Price - MSFTMicrosoft employee Monday, April 9, 2012 5:11 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, April 16, 2012 8:10 AM
Thursday, March 15, 2012 9:17 AM -
IE: http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/threads
VS Express: http://social.msdn.microsoft.com/Forums/en-US/vswebdeveloperexpresspt/threads
VS 2010: http://social.msdn.microsoft.com/Forums/en-US/vs2010ctpwebdev/threads
Ed Price (a.k.a User Ed), SQL Server Experience Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Monday, April 9, 2012 5:18 AM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, April 16, 2012 8:09 AM
Monday, April 9, 2012 5:18 AM