[horde] (conditional) encoding problem
Jan Schneider
jan at horde.org
Fri Oct 21 01:27:12 PDT 2005
Zitat von Eduardo Dominguez <eduardodmz at gmail.com>:
> On 10/21/05, Jan Schneider <jan at horde.org> wrote:
>> Zitat von Eduardo Dominguez <eduardodmz at gmail.com>:
>>
>> > Any ideas or pointers on how I can make Horde change the encoding for
>> > just one script ?
>>
>> That shouldn't be necessary. Use String::convertCharset() to convert
>> only the data that needs to be in a different charset.
>>
>
> Jan,
>
> thanks for the answer.
>
> For text that is not passed thru gettext (80% of the text in that
> script) then your suggestion will work just fine ;)
>
> OTOH, I was under the impression that when using gettext the strings
> end up being converted with the default encoding before being sent to
> the browser. If this is the case then I have a problem because I won't
> be able to use gettext in that script.
Why not?
String::convertCharset(_("Translated Text"), NLS::getCharset(), 'iso-8859-1')
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the horde
mailing list