0

How do I include a <meta http-equiv="Content-Type" to my pages?

asked 2009-04-15 12:21:55 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

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

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-04-15 12:26:28 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-04-15 12:27:21 +0800

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

link publish delete flag offensive edit

answered 2009-04-15 12:39:35 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

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

link publish delete flag offensive edit

answered 2009-04-16 02:34:35 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

Hi,

Did you make sure your file encoding?
Maybe you have to save it as a UTF-8 file type.

/Jumper

link publish delete flag offensive edit

answered 2009-04-17 15:22:19 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-04-15 12:21:55 +0800

Seen: 221 times

Last updated: Apr 17 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More