>  Daniel Dekany
> But anyway, I think that controlling output encoding
> in template is
> usually not a good practice. And, I tend to think
> that the safest is if
> you just use UTF-8 as output encoding everywhere...
> no "?"-s.

This is what I encountered and had a minor problem in
Win2k environment (if template is ever saved with
Notepad UTF8 format). Win-notepad will add UTF8 bom
marker (3 bytes) at the start...which is a very good
as programs can transparently handle several encodings
without an user interaction.

If velocity is used to generate html files
(text/html), then extra ? character is not displayed
at the webbrowser. Maybe browsers recognise the bom
and will skip it.

But generating "text/plain" from Notepad-UTF8 saved
velocity template will output ? character as first
character. My unicoderesourceloader has a standalone
testprogram to see it happen.


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to