Re: bracket syntax and UTF-8
mschipperheyn <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Yeah, you are right, there as a BOM at the beginning of the file. I had used a batch converter that inserted those. Kind of a bummer that that isn't handled correctly. I removed them. What I'm seeing though, is that if I enter arabic characters in my freemarker template, the end result shows garbled text. I think this may also be the reason for the BOM character being display. I have * UTF-8 freemarker templates * UTF-8 set for CharacterEncodingFilter in web.xml * UTF-8 database * defaultEncoding of Spring Freemarker Config set to UTF-8 * contentType of FreeMarkerViewResolver set to text/html;charset=UTF-8 Hmm, figured it out. By adding at the top [#ftl encoding="UTF-8"/] the arabic is being displayed correctly Cheers, Marc -- View this message in context: http://www.nabble.com/bracket-syntax-and-UTF-8-tp25202138p25210155.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