[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can't convert string from native encoding to 'UTF-8' problems

From: Andreas Krey <a.krey_at_gmx.de>
Date: Thu, 14 Jul 2011 07:11:06 +0200

On Wed, 13 Jul 2011 22:55:24 +0000, Stefan Sperling wrote:
...
> Try setting the environment variable in your crontab instead.
> Put this in your crontab:
>
> LC_ALL=en_US.UTF-8
> * * * * * /root/test >> /var/log/test.log 2>&1
>
> I think that should work. Most cron programs support setting environment
> variables like this.

And if they don't something along

  * * * * * /usr/bin/env LC_ALL=en_US.UTF-8 /root/test >> /var/log/test.log 2>&1

should do the trick. Also, then you are sure it only affects this line.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Received on 2011-07-14 07:11:58 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.