[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: system encoding? (was:Re: [newbie] specifying file encoding)
From: Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date: 2003-09-24 7:49:43
[Download RAW message or body]
Emmanuel Touzery wrote:
>a string is considered by ruby as encoded as <insert your locale here>. 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic