Crontab´s charset not in utf-8

Marius Gedminas marius at pov.lt
Wed Oct 10 17:24:57 UTC 2007


On Wed, Oct 10, 2007 at 07:19:02PM +0200, ml at bortal.de wrote:
> Hello List,
> 
> i have the problem that executed crontab jobs die because they can not 
> hand the german chars such as ö,ä,ä.
> 
> When i run "locale" from a crontab job, i get:
> LANG=
> LC_CTYPE="POSIX"
...
> LC_ALL=
> 
> 
> if i run it from my root shell:
> LANG=en_US.UTF-8
> LANGUAGE=en
> LC_CTYPE="en_US.UTF-8"
...
> 
> Any idea how i can set the carset from the crontab to utf-8, too?

Add

  LC_CTYPE=en_US.UTF-8

(or LC_ALL=..., depending on your needs) to your crontab file.

Marius Gedminas
-- 
Some performers on television appear to be horrible people, but when
you finally get to know them in person, they turn out to be even worse.
                -- Avery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071010/f491990c/attachment.sig>


More information about the ubuntu-users mailing list