Module: Locale::Driver::Win32

Public Instance Methods


charset ()

Gets the Win32 charset of the locale.

    # File lib/locale/driver/win32.rb, line 34
34:       def charset
35:         charset = ::Locale::Driver::Env.charset
36:         unless charset
37:           loc = LocaleTable.find{|v| v[1] =locale.to_general}
38:           loc = LocaleTable.find{|v| v[1] =~ /^#{locale.language}-/} unless loc
39:           charset = loc ? loc[2] : "CP1252"
40:         end
41:         charset
42:       end