Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: LANG setting and code pages

by adolpht (Novice)
on Oct 13, 2004 at 08:14 UTC ( [id://398789]=note: print w/replies, xml ) Need Help??


in reply to Re: LANG setting and code pages
in thread LANG setting and code pages

Thanks for the replies, Red Hat : Red Hat Enterprise Linux ES release 3 (Taroon Update 1) LANG=en_US.UTF-8 Putty Terminal encoding UTF-8 I have cut Oracle out completely, I have the simplest possible to test the problem, i.e. print "Umlaut \n"; If I leave LANG set, I can edit my script and type in vi, but the output is messed up when I run it, if I unset LANG, the script output looks good, but I can't use vi to edit the umlauts. What setting(s) do I need to be able to print a from perl *and* be able to edit the script and change it? Cheers, Tony

Replies are listed 'Best First'.
Re^3: LANG setting and code pages
by dave_the_m (Monsignor) on Oct 13, 2004 at 14:03 UTC
    Like I said earlier, remove the .utf8 suffix from $LANG, ie in you case, set it to en_US.

    Dave.

      Hi Dave, I tried setting LANG=en_US as you suggest. The gets printed but I cant see them in vi: print "Umlaut : ??\\n"; # copy-n-pasted from a vi session. That should be I tried "use uft8" and "no utf8" but still a problem. Any other ideas? Tony

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://398789]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-16 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found