-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I'm trying to insert the correct encoding and mime-type of my pages in the generated html but it isn't working. I need to include the above tag in my pages:
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head>
I've tried to include this directive in my zul file:
<?page title="My Page" contentType="text/html;charset=UTF-8"?>
but it isn't working and I'm having problem with characters coded in UTF-8.
What am I doing wrong? What should I do to get it working?
Regards,
Felipe Cypriano
Hi Felipe
try this
... <?meta content="text/html; charset=UTF-8" pageEncoding="UTF-8" ?> ...
Stephan
PS: Help to prevent the global warming by writing cool software
Thanks Stephan,
I made just a little modification:
<?meta http-equiv="Content-Type" content="text/html; charset=UTF-8"?>
It generates the meta tag correctly. But I'm still having problems with some characters..
Regards,
Felipe Cypriano
Hi,
Did you make sure your file encoding?
Maybe you have to save it as a UTF-8 file type.
/Jumper
I've opened the file in Notepad++ and it shows in status bar: Dos/Windows | ANSI as UTF-8
IMO the file is saved with the correct encoding.
Regards,
Felipe Cypriano
Asked: 2009-04-15 12:21:55 +0800
Seen: 221 times
Last updated: Apr 17 '09