Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Can you list best practices for globalization and localization
Can you list best practices for globalization and localization?
✍: Guest
Below are the best practices while developing international language support software:
Do not hardcode strings or user interface resources.
Make sure your application depends on Unicode.
When ever you read or write data from various encoding make sure you use the
System.text namespace. Many programmers assume ASCII data.
While testing test it with actual international data and environments.
Whenever we manipulate data for instance numbers, dates or currency make sure
that you are using culture-aware classes defined in System.Globalization namespace.
Below is the table which specifies in more detail about the functionality and the
classes to be used to achieve the same.
If a security decision is based on the result of a string comparison or case change
operation, perform a culture-insensitive operation by explicitly specifying the
CultureInfo.InvariantCulture property. This practice ensures that the result is not
affected by the value of CultureInfo.CurrentCulture.
Move all your localizable resources to separate DLLfs.
Avoid using images and icons that contain text in your application. They are expensive
to localize.
Allow plenty of room for the length of strings to expand in the user interface. In
some languages, phrases can require 50-75 percent more space.
Use the System.Resources.ResourceManager class to retrieve resources based on
culture.
Explicitly set the CurrentUICulture and CurrentCulture properties in your application.
Do not rely on defaults.
Be aware that you can specify the following three types of encodings in ASP.NET:
requestEncoding specifies the encoding received from the client's browser.
responseEncoding specifies the encoding to send to the client browser. In most
situations, this should be the same as requestEncoding.
FileEncoding specifies the default encoding for .aspx, .asmx, and .asax file parsing.
2007-11-02, 5526👍, 0💬
Popular Posts:
How can I enable session tracking for JSP pages if the browser has disabled cookies? We know that se...
What will be printed as the result of the operation below: main() { char *p1; char *p2; p1=(char *)m...
How To Calculate Expressions with SQL Statements? - MySQL FAQs - Introduction to SQL Basics There is...
.NET INTERVIEW QUESTIONS - What is the difference between thread and process? A thread is a path of ...
What's the difference between J2SDK 1.5 and J2SDK 5.0? There is no difference, Sun Microsystems just...