Class URI.LocaleToCharsetMap

Enclosing Class:

public static class URI.LocaleToCharsetMap
extends Object

A mapping to determine the (somewhat arbitrarily) preferred charset for a given locale. Supports all locales recognized in JDK 1.1.

The distribution of this class is It was originally written by Jason Hunter [jhunter at] and used by with permission.

Method Summary

static String
getCharset(Locale locale)
Get the preferred charset for the given locale.

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details


public static String getCharset(Locale locale)
Get the preferred charset for the given locale.
locale - the locale
the preferred charset or null if the locale is not recognized.