Hi,
I created a custum function to escape HTML-entities. In templates it looks like this:
The output was:
Now I changed to UTF-8 and everything works fine, but strings I passed to the function. Now the output is:
In the compiled template it is
When I use the function in a cgi and pass the result to the template as a variable it is displayed correctly.
Any Ideas? TIA
I created a custum function to escape HTML-entities. In templates it looks like this:
Code:
<%MYLIB::HTML::entities(' Öckerö')%> - ÖckeröThe output was:
Code:
Öckerö - ÖckeröNow I changed to UTF-8 and everything works fine, but strings I passed to the function. Now the output is:
Code:
Öckerö - ÖckeröIn the compiled template it is
Code:
$return .= $self->_call_func('MYLIB::HTML::entities', 1, 0, q{Öckerö});When I use the function in a cgi and pass the result to the template as a variable it is displayed correctly.
Any Ideas? TIA