module Locale::Driver::Win32
Public Instance Methods
Source
# File lib/locale/driver/win32.rb, line 47 def charset charset = ::Locale::Driver::Env.charset unless charset if locales tag = locales[0].to_rfc.to_s loc = LocaleTable.find{|v| v[1] == tag} loc = LocaleTable.find{|v| v[1] =~ /^#{locales[0].language}/} unless loc charset = loc ? loc[2] : nil else charset = "CP1252" end end charset end
Gets the Win32
charset of the locale.