globalization

app.config globalization

web.config allow a globalization tag: This setting will set the globalization for the entire ASP.NET application. Does this tag work in app.config in standard forms applications too? If yes... where shall it be placed? Or.. is there another way to set the globalization for the entire forms application. Including dll's and all threa...

ASP.NET Globalization: Culture="auto" page directive with neutral culture crash?

Hi all, I'm running into a case where an ASP.NET application using the built-in globalization facilities is crashing. On an ASP.NET page with the Culture="auto" directive, a user with a neutral culture as their browser language (such as "zh-Hans") will produce the following exception: Culture 'zh-Hans' is a neutral culture. It can...

sort week days by first day of work

is there a better way of rearange the DateTimeFormat.DayNames acording to the DateTimeFormat.FirstDayOfWeek so that if DateTimeFormat.FirstDayOfWeek = 1 dayNames containts mon,tue,wed, ... insted of son,mon,tue, ... I'm currently using: CultureInfo culture = System.Globalization.CultureInfo.CurrentUICulture; string[] DayNames...

ASP.NET, GridView, BoundField, HeaderText Translation

Im having a problem with the HeaderText not being translated when i have definied a new resource file.. all other text do translate but not the HeaderText, even the TemplateField.HeaderText gets translated. <asp:GridView ID="GridView1" runat="server" PageSize="25" GridLines="None" AutoGenerateColumns="False" Width="100%" ...

Good resources for learning the different types of Character Encoding and converting between them

One thing I have never truly understood is the concept of character encoding. The way encoding is handled in memory and code often baffles me in that I just copy an example from the internet without truly understanding what it does. I feel it's a really important and much overlooked subject that more people should take the time to get ri...

Custom cultures question about asp.net resx files

We have a custom business culture we've created, let's call it customer. So we've created a custom culture, en-GB-Customer. That all works fine if we have a base resource file and then the customer resource file, e.g. Login.aspx.resx and Login.aspx.en-GB-Customer.resx We see text for general users and then text for Customers depending o...

Changing Currency Symbol location in System.Globalization.NumberFormatInfo

I created a CultureInfo object using new CultureInfo("fr-FR"). Now I have a number that I want to call .ToString("C", FrenchCultureInfo). The resulting string puts the € AFTER the number. Why? CultureInfo french = new CultureInfo("fr-FR"); double value = 1234.56; string output = value.ToString("C", french);//output = "1 234,56 €" F...

How can I change the CurrentCulture of the entire process (not just current thread) in .Net?

I have a situation where I need to set my process' locale to en-US. I know how to do this for the current thread: System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); But my application uses BackgroundWorkers to do some processing, and the locale for these worke...

ToString("0") versus ToString(CultureInfo.InvariantCulture)

I would like to make sure that certain numbers in my application are printed without any separators, groupings etc. no matter what the current environment is. It seems that the following two methods produce the same results (there are possibly more): 123456789.ToString("0"); 123456789.ToString(CultureInfo.InvariantCulture); Are you aw...

Issue debugging custom culture

I am having an issue with a custom culture when debugging on my local machine. I have a web site that has a separate resx file for internal vs external users (terminology is different) We implement this using a custom culture en-GB-external and associated resx. Internal clients would use the en-GB resx file. On one PC when debugging, I...

How to test webservice for unicode handling

Are there test tools available to test if a webservice can handle unicode utf-8 encoded posts? How do I generate utf-8 encoded data? ...

unicode regular expression tutorial

Any good tutorial available for changing ASCII regular expressions to unicode regular expression? I need to convert existing us english app to support internationalization. ...

Handling special characters ñ in asp.net MVC

Hello, I have a Web application using asp.net MVC (c#). When generate a View from a controller, characters like ñ appears without any problems. But when run debugger mode the page doesn't display this characters and show me this: Compañía > Crear Appreciate any help Regards ...

Group/Editor permission for language in EPiServer

I have an issue with a large globalized website with alot of languages in EPiServer. At the moment we have used different nodes for each language, with each spoken language for that country. With this, we have assigned access rights to the node-treew using Editors (e.g NL has EditorsNL). Several of the nodes has Spoken languages as wel...

Globalize an existing Windows Forms application?

Hi, I have an existing winforms application developed using VS 2005 and .net framework 2.0. Now we need to globalize this application. The two locales are German and Japanese. I know we can use form's localize property to create localized form resources and can have other resource files for strings used in message boxes, exceptions et...

Asc(Chr(254)) returns 116 in .Net 1.1 when language is Hungarian.

I set the culture to Hungarian language, and Chr() seems to be broken. System.Threading.Thread.CurrentThread.CurrentCulture = "hu-US" System.Threading.Thread.CurrentThread.CurrentUICulture = "hu-US" Chr(254) This returns "ţ" when it should be "þ" However, Asc("ţ") returns 116. This: Asc(Chr(254)) returns 116. Why would Asc() and ...

Training or course on Software Globalization?

Does any one know a good training or course available on Software Globalization? ...

Localize user entered content in Winforms application.

Hi We have a winforms application , which is to be globalized and localized for french and japanese . the default locale is English. I understood, how to localize my forms . but need to understand localization of user entered data in those forms. Our application creates some templates which should be used by person in different locale...

Formatting Numbers as Strings with Commas in place of Decimals

I have the following number: 4.3 I'd like to display this number as 4,3 for some of our European friends. I was under the impression that the following line would do the trick: string ret = string.Format("{0:0,0}", 4.3); // returns "04", not "4,3" Am I using the incorrect string? ...

Clear/ Reset Resource Provider

How do you get access to the Resource Provider for the current context? I have a web page that allows a client to edit their Globalization values which are stored in SQL. However pages still utilize the cached values until the app domain is freed. How can I force clear/reset the provider and or get access to it to clear its cache. Th...