Forum Discussion
catherine_OTX
14 years agoGuide
Hello, I think I found a bug with liaAddScript and foreign language characters. I am trying to pass a french string into a component through REST and I am getting this error:
Freemarker template 'home-news' processing failed:
MissingFormatArgumentException:Format specifier 'C'
Here is the code I was using:
<@liaAddScript>
$(document).ready(function() {
$('.ac_body').jqueryPlugin({
blogLink:'${latestPost.@view_href}' });
});
</@liaAddScript>
When I use a regular script tag with javascript as the language it renders correctly. Any ideas?
Thanks for your time!
Catherine
DougS
14 years agoKhoros Alumni (Retired)
not sure exactly what's happening here Catherine -- what does latestPost.@view_href render when the error occurs? Maybe you can assign it to a variable first and then render it to see?