Effects of Culture on Strings

This article shows how ViviFire uses culture information to convert and compare strings.

When to use culture-related strings

Typically, you use culture-related strings for all data shown to and entered by users. But stored data is typically in formats of one given culture or the default one.

For example, your program tells the user to enter a date as a string. Although it is possibly easier to write code that ignores the culture of your users, ViviFire tries to make it easy. For the user, it is easier to use the formats of their culture than something that you selected.

After the user enters the date, you must convert it to the format you use internally. And if your program subsequently shows the date to the user, it must be in the format of their culture.

Culture-sensitive functions


Using culture correctly


Comparing strings


Security problems