Questions tagged [cultureinfo]

Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.

Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.

Reference

CultureInfo on MSDN

1135 questions
0
votes
1 answer

CollectionViewSource and sorting (Danish alphabet)

I would like to sort some objects that have a Name property. These objects are stored in CollectionViewSource. I add sorting description in the following way: MyCollectionViewSource.View.SortDescriptions.Add(new…
niao
  • 4,972
  • 19
  • 66
  • 114
0
votes
1 answer

Error converting between dateformats in c#

I have the following data in my date field of my GridView: 2016-01-24T00:00:00 Before updating that field, I want to store that value in "dd/MM/yyyy" format. To do that I'm doing the following: IFormatProvider culture = new…
gene
  • 2,098
  • 7
  • 40
  • 98
0
votes
1 answer

databinding list of double with invariant culture

I happen to have a list of double in a class and databind it to a combobox. The problem I am experiencing is that the displayed text for double has a comma instead of the dot. Ex 2,56 isntead of 2.56. The combo box seems to convert my doubles to…
ak3nat0n
  • 6,060
  • 6
  • 36
  • 59
0
votes
0 answers

ToUpper and ToLower returning CJK characters

A friend has some C# code on a machine that is returning CJK characters when ToUpper and ToLower are called on strings. ToUpperInvariant appears to work. Here are some of the results: //precondition: var viewName =…
Millie Smith
  • 4,536
  • 2
  • 24
  • 60
0
votes
1 answer

How to check if script is bicameral?

Is there a way to check if a script is bicameral, or with two sets of symbols (like upper- and lower-case) for each letter in C#? An example of a bicameral script is Roman and Greek.
Noble_Bright_Life
  • 569
  • 3
  • 9
  • 16
0
votes
1 answer

How can I find the first strong directionality character of a string in C#?

Assuming I get a string that can have mixed left-to-right and right-to-left content, I want to find the first strong directionality character in it, as defined here. I think I found a good starting point in this question, but I still can't figure…
Gabriel S.
  • 1,347
  • 11
  • 31
0
votes
0 answers

Partial translated resourcefiles, how to get the complete set of key, values pairs?

Imagine I have the following 2 resx files: Resource.resx add | add delete | delete edit | edit Resource.nl.resx add | toevoegen delete | verwijderen As you can see, the "nl" resource does not contain all keys of the base…
Edwin Stoteler
  • 1,218
  • 1
  • 10
  • 25
0
votes
1 answer

MVC5 decimal? field editfor with decimal seperator

I have a decimal field in my modal. public partial class MyModel { public decimal? BudgetAantalDecimal { get; set; } } I show this in my form with @Html.EditorFor(model => model.BudgetAantalDecimal, new { htmlAttributes = new { @class =…
Danny
  • 746
  • 2
  • 8
  • 20
0
votes
1 answer

WPF on Windows 7: GetCultureInfo in ValueConverter causing StaticResourceExtension exception on Provide Value

I'm sorry if the title is a bit confused, but I don't really know how to shortly describe this issue. I have a wpf windows application that runs fine in Windows 8 and 10 but crashes on Windows 7 when loading the main interface. The exception the…
Eux
  • 482
  • 7
  • 16
0
votes
1 answer

Culture for Umbraco API Controller

I can change the language for an Umbraco Surface Controller but I cannot see how to change it for an Umbraco API controller. Even though I can change the culture in my global.ascx BeginRequest the Model is still trying to bind a date using en-US…
RadarBug
  • 707
  • 1
  • 6
  • 13
0
votes
1 answer

CultureInfo.GetCultureInfo("en-US").DateTimeFormat.FirstDayOfWeek returns sunday?

Running this command CultureInfo.GetCultureInfo("en-US").DateTimeFormat.FirstDayOfWeek in C# returns Sunday. It should return Monday. Why does it return Sunday?
Michael Blok
  • 221
  • 1
  • 4
  • 15
0
votes
1 answer

Exception: System.Resources.MissingManifestResourceException while looking for themes\generic.baml

I received the exception: Exception thrown: 'System.Resources.MissingManifestResourceException' in mscorlib.dll Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure…
Eric Ouellet
  • 10,996
  • 11
  • 84
  • 119
0
votes
2 answers

How to determine on which culture DateTime object is stored as?

Or is this even possible? As a side question and the reason for this question coming into existence for me is to understand what happens to the DateTime object when user changes Windows culture settings at runtime?
xnp
  • 51
  • 2
  • 6
0
votes
2 answers

Is it possible to set NLS_SORT using Nhibernate configuration?

We are using NHibernate and Oracle for database access. During selection we are ordering data by text, but culture specific characters goes in the end of the list. We want: AĀBCDEĒFG We got: ABCDEFGĀĒ In oracle docs we found that NLS_SORT has to…
Sergejs
  • 2,540
  • 6
  • 32
  • 51
0
votes
1 answer

Using resource files (CultureInfo) in C# class file

I need a help with using resource files in C# class files. My code: class errorMessages { private static ResourceManager LocRM = new ResourceManager("Project1.languageFile", typeof(errorMessages).Assembly); public static void…
Rodzio
  • 15
  • 5