Java learning notes

xiaoxiao2021-03-06  21

Java uses Unicode as character representation

Localization Support Relying on the Locale class: This class represents a specific area, specified using national code (ISO-3166 Definition) and language code (ISO-639) combination; "" CH ");

Zone information can be obtained by implies two ways of object request: Returns Request.GetLocale () and returns to the Java.util.Enumeration type of all regions in priority order () Request.getlocale ()

Use a PropertyResourceBundle object to achieve localization with a set of localized text resources (/Web-inf/class/*_??.properties)

About Western European language can use LocaleBean to convert date and digital strings into Java objects

In the JSP page, the input is provided on non-Western language: define the character set by charset = xxxx in the page instruction contentty attribute; (the JSP of the table and the reception form data need to provide character set information)

At the same time, hidden charset fields are required in the table page: , use

转载请注明原文地址:https://www.9cbs.com/read-43082.html

New Post(0)