locale

Does Microsoft SQL Server support localized name sorting?

≡放荡痞女 提交于 2019-12-10 18:57:44
问题 I'm wondering if Microsoft SQL Server supports sorting based on localization preferences. I see they have a page at https://technet.microsoft.com/en-us/library/cc835499(v=sql.110).aspx which lists how strings are compared based on the norms of the language. But I notice that the English and Dutch comparison both use Latin1_General_CI_AS . The problem is in the Netherlands many have the last name with a tussenvoegsel. So I believe the last name of De Jong would come after Van Beethoven when

UTF-16 codecvt facet

こ雲淡風輕ζ 提交于 2019-12-10 18:46:06
问题 Extending from this questions about locales And described in this question: What I really wanted to do was install a codecvt facet into the locale that understands UTF-16 files. I could write my own. But I am not a UTF expert and as such I am sure I would get it nearly correct; but it would break at the most inconvenient time. So I was wondering if there are any resources (on the web) of pre-build codecvt (or other) facets that can be used from C++ that are peer reviewed and tested? The

How to change language in kotlin (locale)

两盒软妹~` 提交于 2019-12-10 18:32:25
问题 I have 2 string files "en" and "tr". When I change my telephone's language string files change automatically(I didn't write extra code for this result and I don't know how this happen). I want change string files with programmatically. I used this code. I get Toast message but language doesn't change.WHY? I used these code before for another application which I write with java not Kotlin and these code work fine. Please don't say duplicate because I read a lot of questions. I try a lot of

How to change message “Invalid Date” in ngx bootstrap datepicker without being in node modules

流过昼夜 提交于 2019-12-10 18:11:33
问题 I changed the language of my datepicker but the message that appears is still in English. I know it is inside ngx-bootstrap / chronos / locale / locale.defaults.ts where it brings the following information export declare const defaultInvalidDate = "Invalid date"; I would also like to change this message. Is there any information I have to add to the "input [bsConfig] =" ... Anyway, where can I change this message without moving the Node Modules folder? Thank you. 回答1: I finally managed to do

locale issue while upgrading data directory from PostgreSQL 8.4 to 9.5

一个人想着一个人 提交于 2019-12-10 18:07:33
问题 I am upgrading PostgreSQL 8.4 to 9.5 on Windows. Following are the steps that are to be followed: Install PostgreSQL 9.5 (8.4 is already installed). Migrate data from 8.4's data dir to 9.5's data dir using pg_upgrade utility. After successful upgrade, uninstall PostgreSQL 8.4 Here the issue is that PostgreSQL 8.4 could be installed with any locale (English or French etc.) and to have successful data directory upgrade, PostgreSQL 9.5 must be installed with the same locale as that of 8.4.

How to install a “locale” to be used in php on a osx machine?

风流意气都作罢 提交于 2019-12-10 17:55:04
问题 I'm developing a website that needs multilingual support. I am trying to use locales in php but a certain locale (es-CO) is not available in my development machine. It is on my hosting server. I've researched on how to add new locales but can't find how or where to get the new locale files. Should this be installed in the OS, on apache or on php? and where can I get these files? in linux i've found that running sudo-apt get language-pack-es-base does this but no idea how to do this in osx.

How can I get Perl to respect the locale encoding for STDIN/STDOUT/STDERR, without affecting file IO?

孤者浪人 提交于 2019-12-10 17:47:21
问题 What is the best way to ensure Perl uses the locale encoding (as in LANG=en_US.UTF-8) for STDIN/STDOUT/STDERR, without affecting file IO? If I use use open ':locale'; say "mañana"; open (my $f, '>', 'test.txt'); say $f "mañana"; then the locale encoding is used for STDIN/STDOUT/STDERR, but also in test.txt, which is not very well-behaved: you don't want the encoding of a file to depend on the way you logged in. 回答1: First, you should be using use open ':std' => ':locale'; instead of use open

Working with UTF8

痴心易碎 提交于 2019-12-10 17:43:29
问题 It seems like a rather complicated issue to work with std::string and UTF8 and I cannot find a good explanation of do's and dont's. How can I properly work with UTF8 in C++? It is rather confusing. I've found boost::locale and I set the global locale: std::locale::global(boost::locale::generator()("")); However, after this what do I need to think about, when can I get problems? Will writing/reading from file work as expected, string comparisons etc...? So far I'm aware of the following: std:

What is expected datetime string for ar-sa culture?

 ̄綄美尐妖づ 提交于 2019-12-10 17:35:12
问题 I have a method DateToString(DateTime datetime, string format, CultureInfo cultrueInfo) { return datetime.ToString(format, cultureInfo); } Parameters: datetime: {10/1/2016 12:00:00 AM} format: "ddd, dd MMM" cultureInfo: {ar-SA} But it returns me "السبت, 30 ذو الحجة". October 1st is Saturday. Why it seems return me September 30, Saturday? Anything wrong at my side? 回答1: ar-SA culture uses UmAlQuraCalendar a calendar. new CultureInfo("ar-SA").Calendar.Dump(); // System.Globalization

PHP - locale information gone after PDO connection (DB2)

依然范特西╮ 提交于 2019-12-10 17:32:39
问题 Is there any reason why PHP loses all locale information after connecting to DB2 with PDO? I always have to set the locale information again after a connnection. <?PHP //set locale information setlocale( LC_MONETARY,'en_US' ); //print location information print_r(localeconv()); // Array // ( // [decimal_point] => . // [thousands_sep] => // [int_curr_symbol] => USD // [currency_symbol] => $ // [mon_decimal_point] => . // [mon_thousands_sep] => , // ... // ) //**********************************