Change charset appearing in meta tag

Author Message

Eirik Alfstad Johansen

Thursday 05 October 2006 4:25:14 am

Hi,

I'm upgrading a 3.5.0 site to 3.8.4, and I have a few questions regarding switching from iso to utf-8 charset.

1. How do I change the charset which appears in the meta tag content-type when I make use of the page_head.tpl template?

2. I have the following line at the top of my pagelayout.tpl override:

{*?template charset=iso-8859-1?*}

When I try to change it to utf-8 through the admin interface, it's automatically converted back to iso.

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Claudia Kosny

Thursday 05 October 2006 5:04:05 am

Hi Eirik

1) in i18.ini.append.php, although you should be careful as this might influence other charsets as well (e.g database connection)

2) no idea (I never use the admin interface for creating or changing templates so I frankly don't even know what you mean...)

Greetings from Luxembourg

Claudia

Ɓukasz Serwatka

Thursday 05 October 2006 5:11:32 am

in settings/override/template.ini.append.php set correct charset for templates. utf-8 in your case.

[CharsetSettings]
DefaultTemplateCharset=utf-8

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Eirik Alfstad Johansen

Thursday 05 October 2006 10:38:15 am

Hi guys,

Thanks for your input. Here's a quick summary of what I've done so far with regards to charset and the database:

1. Exported the content from the 3.5.0 database.
2. Created a new database for the 3.8.4 installation with the utf-8 charset.
3. Imported the contents of the 3.5.0 database.
4. Run the various sql updates and associated scripts.
5. Run the SQL commands posted at the last entry in this post:

http://ez.no/community/forum/general/convert_from_iso_8859_1_encoding_to_utf_8

6. Set Charset in [DatabaseSettings] to utf-8.

So far, I get attributes of the xml datatype displayed correctly. However, attributes built upon the textline datatype for instance, display special (Norwegian) characters incorrectly.

I also tried changing to utf-8 in i18n.ini, but that just made the xml blocks messy as well.

Please advice.

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 12:38:07
Script start
Timing: Jan 19 2025 12:38:07
Module start 'layout'
Timing: Jan 19 2025 12:38:07
Module start 'content'
Timing: Jan 19 2025 12:38:08
Module end 'content'
Timing: Jan 19 2025 12:38:08
Script end

Main resources:

Total runtime1.0837 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 590.3125152.6250
Module start 'layout' 0.00620.0038 742.937539.4453
Module start 'content' 0.01001.0721 782.3828592.0156
Module end 'content' 1.08220.0015 1,374.398412.1563
Script end 1.0837  1,386.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3346160.0002
Check MTime0.00140.1281160.0001
Mysql Total
Database connection0.00100.092210.0010
Mysqli_queries1.022594.3507620.0165
Looping result0.00080.0701600.0000
Template Total1.045296.420.5226
Template load0.00210.197720.0011
Template processing1.043096.246520.5215
Template load and register function0.00010.010910.0001
states
state_id_array0.00150.141010.0015
state_identifier_array0.00180.166120.0009
Override
Cache load0.00180.1697360.0001
Sytem overhead
Fetch class attribute can translate value0.00100.088530.0003
Fetch class attribute name0.00140.131560.0002
XML
Image XML parsing0.00140.127630.0005
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00110.0984240.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs