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

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