View Full Version : change $LANG in php

1st August 2004, 02:22 PM
Hi all,

I have a php script which gets a nicely formatted webpage via
passthru ("w3m -F -dump http://www.this.net/that.htm");
This works nice when the server-wide $LANG is set to a non-UTF-8 encoding.
Since I prefer not to touch the system-wide encoding, I'd like to know if any of you
could tell me how to set the LANG environment variable in a php script.

(I could use recode, but I want to do it the right way from the very beginning)

2nd August 2004, 12:10 PM
nobody? :(

22nd September 2004, 01:47 PM
Answering my own question:

did the trick :)