From: Emmanuel Touzery Date: 2003-09-24T16:49:43+09:00 Subject: system encoding? (was:Re: [newbie] specifying file encoding) Emmanuel Touzery wrote: >a string is considered by ruby as encoded as . If you >want to treat strings from other encodings, you can convert encoding using >"iconv" (bundled with ruby 1.8); in your case, you can use iconv to convert >the string to your local encoding (iso-8859-1) and then capitalize will work >fine. > > which made me wonder: how do I find out what is the current local encoding for the computer in a portable (unix/windows) way? emmanuel