Forums / Developer / Using local characters in INI-files?

Using local characters in INI-files?

Author Message

Nicklas Lundgren

Tuesday 08 August 2006 6:30:06 am

Hi,

I am working on an extension, using its own ini-file. In this file, I need to add some info with swedish language characters like Å, Ä and Ö.
Usage like this:

VariableÖ=62
VariableÅ=50

and so on.

I notice, that eventhough the ini file starts with

<?php /* #?ini charset="iso-8859-1"?

This doesnt work. It seems like the eZIni file handles all existing info in the ini-file as ordinary ASCII.

I have tried to set useTextCodec to true when initializing the eZIni. But that doesnt help.

Is this at all achievable?
Any ideas?

All help is greatly appreciated.

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

Kristof Coomans

Tuesday 08 August 2006 9:41:31 am

Hello Nicklas

Only a limited set of characters is allowed in the INI variable names, and eZINI even isn't consistent on this allowed set (see my report: http://ez.no/bugs/view/8770 ).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nicklas Lundgren

Thursday 10 August 2006 6:14:57 am

Hi Kristof,
Thanks for the reply.
However, I solved it by using an array in the ini-file instead, like

MyArray[]
MyArray[VariableÅ]=58

And so on. Then it works, using swedish characters.

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

eZ debug

Timing: Jan 21 2025 02:38:33
Script start
Timing: Jan 21 2025 02:38:33
Module start 'content'
Timing: Jan 21 2025 02:38:33
Module end 'content'
Timing: Jan 21 2025 02:38:33
Script end

Main resources:

Total runtime0.4224 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0111 589.1328180.8281
Module start 'content' 0.01110.0043 769.960994.0078
Module end 'content' 0.01540.4069 863.9688523.0469
Script end 0.4223  1,387.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.8936200.0002
Check MTime0.00170.4034200.0001
Mysql Total
Database connection0.00100.246410.0010
Mysqli_queries0.371087.82881410.0026
Looping result0.00190.46141390.0000
Template Total0.406596.310.4065
Template load0.00090.205710.0009
Template processing0.405796.043810.4057
Override
Cache load0.00060.133810.0006
Sytem overhead
Fetch class attribute can translate value0.00070.174010.0007
XML
Image XML parsing0.00030.075110.0003
General
dbfile0.00190.4449200.0001
String conversion0.00000.001730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs