From: venture Lee Date: 2007-10-22T23:23:24+09:00 Subject: Re: How to obtain local encoding? ------=_Part_14702_17376027.1193063004756 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline i not a c/c++ programer :) On 10/22/07, Austin Ziegler wrote: > > On 10/22/07, venture Lee wrote: > > if use wxruby can solve my problem, example: > > > > require 'wx' > > puts Wx::Locale.get_system_encoding_name > > > > this code will output 'cp936' on my windows and output 'UTF8' on my > linux. > > but it need wxruby, i want to know how to implement same function > without > > wxruby, thanks. > > Look at the implementation of wxruby, then. That'll have the C > functions you need to call. > > -austin > -- > Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ > * austin@halostatue.ca * http://www.halostatue.ca/feed/ > * austin@zieglers.ca > > ------=_Part_14702_17376027.1193063004756--