Re: HTML::Template escaping squashes HTML entities

Mathew Robertson <[email protected]> Tue, 25 Mar 2008 09:59:35 +1100
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Nielsen//NetRatings
Message-ID <[email protected]>
You will be able to support more characters descriptors by using only 
utf8 (ie: unicode) than trying to support individual charsets ** ie: if 
you are resorting to entities, then you should simply use utf8 as they 
both print the same character.

** I can say this from experience, eg: I had a requirement to support at 
least three different charsets on the same web page, at the same time -> 
using entites was hard work on the programmers brain and is bandwidth 
intensive.

You should seriously consider outputting to utf8 only.

cheers,
Mathew

Alex Teslik wrote:
> I completely agree. Unfortunately I've inherited a lot of the code and it
> needs to support all charsets. :(
>
> On Thu, 20 Mar 2008 14:31:54 +1100, Mathew Robertson wrote
>   
>> Have you tried using utf8 as the encoding?  You will get far more 
>> millage out of utf8 than using entities.
>>
>> regards,
>> Mathew
>>
>> Alex Teslik wrote:
>>     
>>> Hello,
>>>
>>>   I'm developing an app where there are some strings that have HTML entities
>>> in them, such as:
>>>
>>> This is a "T&#233;st"
>>>
>>>       
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users