RSS import text encoding

Author Message

Franck Grenier

Thursday 11 February 2010 2:22:00 am

Hello,

I import content from RSS feeds. Everything works fine, excepted an encoding issue on special caracters. My site uses UTF-8, the feeds use ISO.

The apostrophe (`) and other special symbols are replaced by squares.

How can I correct that without having to modify each imported node ?

Developer at Open Wide

Franck Grenier

Tuesday 23 February 2010 12:26:40 am

The problem came from charset cp1252, from Microsoft Word. Then, I modified the rssimport.php cronjob and added this function :

http://www.php.net/manual/en/function.utf8-encode.php#88329

Resolved.

Developer at Open Wide

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 15 2025 09:07:38
Script start
Timing: Jan 15 2025 09:07:38
Module start 'layout'
Timing: Jan 15 2025 09:07:38
Module start 'content'
Timing: Jan 15 2025 09:07:39
Module end 'content'
Timing: Jan 15 2025 09:07:39
Script end

Main resources:

Total runtime1.4224 sec
Peak memory usage6,144.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 684.4766183.6875
Module start 'layout' 0.00640.0029 868.164152.5625
Module start 'content' 0.00931.4116 920.72661,706.1875
Module end 'content' 1.42090.0015 2,626.914164.5469
Script end 1.4224  2,691.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00520.3655160.0003
Check MTime0.00120.0873160.0001
Mysql Total
Database connection0.00080.059510.0008
Mysqli_queries1.371396.4075520.0264
Looping result0.00050.0352500.0000
Template Total1.381397.120.6906
Template load0.00460.322520.0023
Template processing1.376796.784020.6883
Template load and register function0.00120.083810.0012
states
state_id_array0.00130.092910.0013
state_identifier_array0.00390.276920.0020
Override
Cache load0.00410.2882110.0004
Sytem overhead
Fetch class attribute can translate value0.00050.037810.0005
Fetch class attribute name0.00240.168720.0012
XML
Image XML parsing0.00020.010810.0002
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00150.1074100.0002
String conversion0.00000.000440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs