Re: Rendering Registered Symbol

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Wednesday, January 6, 2010, 3:40:30 PM, Timothy Orme wrote:

> Hi All,
>
>      I'm having an issue where I want to put a registered symbol (®, 
> html &reg) inside of an xhtml document using freemarker. I tried using
> the ?xhtml escape, but this character is not escaped by using this. I 
> looked at some of the others but they all seem to have a relatively 
> small subset of characters that they support. Is there anyway in 
> freemarker to escape a character like this?

The built-in operators of FreeMaker only escapes the characters that
are special according to the rules of XML or HTML. For symbols like
accented letters, registered, etc., no such escaping is needed, only
the proper charset (preferably UTF-8) should be used.

> Thanks,
> Tim

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.