[prog] Dates in Perl, converting ISO to UTF-8

Eeva Järvinen eeva.jarvinen1 at luukku.com
Thu Aug 21 14:29:51 EST 2003


Dan Richter kirjoitti 21.08.2003 kello 13:09:
> I tried loading that and it spewed a few hundred lines of "Malformed
>  UTF8 
> character" errors. (This is on a Red Hat system configured to speak
>  French,
> 
> and sometimes the accented characters don't work very well.) Any other 
> ideas? I'm all for quick-and-dirty in this case.

(oh, "kirjoitti" is "[s/he] wrote" in Finnish)

RH has been UTF-8 all the way since 8.0. This means that text files (perl source) are interpreted as UTF-8 encoded even though they might not be (some savvy programs do recognize the charsets correctly).  You can convert the files with iconv.  See man pages, I'm writing this from work, and I've been sent to XP hell and can no longer run RH on my work computer.  The new job is much better in other ways, though.


HTH,
Eeva

............................................................
Maksuton sähköposti aina käytössä http://luukku.com
Kuukausimaksuton MTV3 Internet-liittymä www.mtv3.fi/liittyma



More information about the Programming mailing list