Reputation: 75103
in the database I have this:
alt text http://www.balexandre.com/temp/2010-11-23_1739.png
in my View, I output like:
defaultMsg: '<%: facebook.Social.PostWallDefaultMsg %>',
and tried like
defaultMsg: '<%: System.Web.HttpUtility.HtmlDecode(facebook.Social.PostWallDefaultMsg) %>',
The output in both codes is:
defaultMsg: 'Tilmeld dig Citroëns Positive Power julekalender',
and in Facebook window I get:
strangely enough it decodes the correct output in all other parts/variables, but never in the message.
Is there any trick that I can, either in MVC or through FB Javascript to get this correctly display?
Thank you.
test link: http://jul.citroen.dk/citroen/Subscriber/Register
added
I also tried changing the charset from UTF-8
to windows-1252
with no effect whatsoever.
Upvotes: 1
Views: 217
Reputation: 18596
Have you tried,
defaultMsg: '<%= facebook.Social.PostWallDefaultMsg %>'
When you do the following,
defaultMsg: '<%: System.Web.HttpUtility.HtmlDecode(facebook.Social.PostWallDefaultMsg) %>',
You are encoding a decoded encode message (lol).
":" Encodes the output "=" doesnt
Upvotes: 2