Re: bracket syntax and UTF-8
mschipperheyn <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Setting <property name="defaultEncoding" value="UTF-8" /> on <bean id="freemarkerConfiguration" class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean"> in the applicationcontext.xml does not seem to do the trick. The problem as I see it is that spring FreeMarkerView class getTemplate(String name, Locale locale) retrieves the template only with specific encoding if the encoding variable of FreeMarkerView is set. However, this is always null, since only the encoding variable in FreeMarkerView.configuration.defaultEncoding can be set through bean configuration. Right now, it looks like a spring configuration bug that can only be resolved by programmatic intervention. I'd be happy to be proven wrong. Cheers, Marc -- View this message in context: http://www.nabble.com/bracket-syntax-and-UTF-8-tp25202138p25202708.html Sent from the freemarker-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july