warning: variable $KCODE is no longer effective

E

Eric Hodel

This warning comes from accessing $KCODE. What should be used instead?

In particular, this snippet from RDoc:
@charset = case $KCODE
when /^S/i
'Shift_JIS'
when /^E/i
'EUC-JP'
else
'iso-8859-1'
end

Eventually @charset is placed in a <meta http-equiv> in the output
RDoc. Is there a better way to determine the charset of a file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,274
Messages
2,571,365
Members
48,049
Latest member
robinsonkoff

Latest Threads

Top