Re: charencoding

B.Kamer <[email protected]> Sat, 7 May 2005 17:05:46 +0200
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
On May 6, 2005, at 18:55, Jean-Christophe Michel wrote:


> B. Kamer wrote:
>
>
>> hi,
>>
>> with the new encoding sceme in bc i am having a bit off trouble   
>> merging
>> bc and legacy code. I would basicly have like to have you  input  
>> wheter
>> the following is possible (it seems to work) or perhaps  i am  
>> thinking
>> to simple here. Ofcourse the i18n conf has iso-8859-1  as encoding.
>>
>> basicly the question would be is switching of internal encoding   
>> allowed
>> in this way. Are existing globals/vars converted  automatically or  
>> are
>> they left alone... are there any obvious  considerations.
>>
>>
>
> Not sure understand. You could have your ob_grab in your external  
> code,
> then end with iconv($grabbed_output,...);
>

tried that, seems to break output. either half pages (mostly on  
single quotes(!)) or wrong characters (euro signs as garbage, etc...)  
are displayed.

the solution i have now seems to work... i am just not sure what  
changing the internal encoding halfway through your the scripts  
actually does... is it from that point on.... or does it also change  
existing variables that are encoded. or doesn't it matter as long as  
your switch before using those variables to the correct encoding. or...

and then there is still the issue of the backend that currently  
doesn't have any conversion... which means bc will accept forms as  
iso-xxxx-x convert it to utf-8 and thus saves it as utf-8 in a  
possibly iso encoded db... It should work but isn't very nice...


> maybe another solution would be to have $conf->temporarilySet(path,
> value); ?
>

which path do you mean?


>
> -- 
> Jean-Christophe Michel
> _______________________________________________
> dev mailing list
> dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
> http://lists.binarycloud.com/mailman/listinfo/dev
>
>
>


_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev