Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] Charset/encoding for e-mail message

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Hatuka*nezumi - IKEDA Soji <address@concealed>
  • To: Olivier Salaün - CRU <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-dev] Charset/encoding for e-mail message
  • Date: Thu, 26 Oct 2006 18:10:21 +0900

On Thu, 19 Oct 2006 17:49:13 +0200
Olivier Salaün - CRU <address@concealed> wrote:

> > (c) Following seem to be coumpound of another factors; they are
> > encoded by charset got by gettext("_charset_") then interpreted
> > as ISO-8859-1:
> >
> > Web:
> > - Language names in language box.
> > - Dropdown box of "digest" parameter.
> > - Perhaps anywhere strftime()'ed date appear.
> > INFO Service message:
> > - Days of Digest.
:
> I'll try to find out what is causing this...

I got it about strftime().

strftime() accepts/returns a string encoded by charset that is
determined by current system locale. So (also, preferred formats
of date/time depend on locale) ---

POSIX::strftime(FORMAT, TIME)

may be replaced with:

Encode::decode(gettext("_charset_"),
POSIX::strftime(Encode::encode(gettext("_charset_"),
gettext(FORMAT)),
TIME))

(I assume gettext("_charset_") designates the equivalent one of
$locale2charset{...}. Is it right?)


--- nezumi



Archive powered by MHonArc 2.6.19+.

Top of Page