[Templates] Apache::Template, Plugins and UTF-8 OH MY!
Todd Freeman
freeman at andrews.edu
Thu Feb 14 21:38:28 GMT 2008
Good day all... as I bet you guessed I have a problem. :)
I have a Perl module that I have made to handle a little news and events
system. Now this application is just a simple "call mysql and dump out
the data" type deal.
Then along come end users... they just love to copy and paste stuff
from Word into the entries so I end up with "funky quotes" from beyond.
My application handles these fine for some reason without doing anything
at all. My plugins that get called from templates processed by
Apache::Template on the other hand get slaughtered.
The data for both the plugin and the mod_perl handled pages both come
from the EXACT same function and a Data::Dumper call proves that it is
returning the EXACT same data in it's 'return' to each program. I am
using templates (in fact the same ones) to create both outputs.
However, the plugin created output is wrong.
Here is an example of the hex values output for a funky "start" double
quote:
My App: E2 80 9C
Plugin: C3 A2 C2 80 C2 9C
So basically... anybody got ideas? :)
I am the stereotypical "stupid American" and although I know how to
speak some Japanese I have yet to do anything with extended character
sets so...
Thanks for any info!
--
Todd Freeman Ext 6103 .^. Don't fear the penguins!
Programming Department /V\
Andrews University // \\ http://www.linux.org/
http://www.andrews.edu/~freeman/ /( )\ http://www.debian.org/
^^ ^^
More information about the templates
mailing list