locale

EqualsIgnoreCase() not working as intended.

随声附和 提交于 2021-02-20 06:49:16
问题 When i run the following program it prints only equals says they are equal However From equalsIgnoreCase docs in java 8 we have : Two characters c1 and c2 are considered the same ignoring case if at least one of the following is true: • Applying the method java.lang.Character.toUpperCase(char) to each character produces the same result public class Test { public static void main(String[] args) { String string1 = "abc\u00DF"; String string2 = string1.toUpperCase(); if (string1.equalsIgnoreCase

EqualsIgnoreCase() not working as intended.

家住魔仙堡 提交于 2021-02-20 06:44:22
问题 When i run the following program it prints only equals says they are equal However From equalsIgnoreCase docs in java 8 we have : Two characters c1 and c2 are considered the same ignoring case if at least one of the following is true: • Applying the method java.lang.Character.toUpperCase(char) to each character produces the same result public class Test { public static void main(String[] args) { String string1 = "abc\u00DF"; String string2 = string1.toUpperCase(); if (string1.equalsIgnoreCase

Displaying cyrillic in RStudio console

断了今生、忘了曾经 提交于 2021-02-19 02:32:21
问题 I am having trouble displaying Russian characters in the Rstudio console. I load an Excel file with Russian using the readxl package. The cyrillic displays properly in the dataframe. However, if I run a function that has an output that includes the variable names, the RStudio consoles displays symbols instead of the proper Cyrillic characters. test.xlsx contains two columns - зависимая переменная (dependent variable - numeric) and независимая переменная (independent variable, factor).

How do I match only fully-composed characters in a Unicode string in Perl?

怎甘沉沦 提交于 2021-02-18 22:10:27
问题 I'm looking for a way to match only fully composed characters in a Unicode string. Is [:print:] dependent upon locale in any regular expression implementation that incorporates this character class? For example, will it match Japanese character 'あ', since it is not a control character, or is [:print:] always going to be ASCII codes 0x20 to 0x7E? Is there any character class, including Perl REs, that can be used to match anything other than a control character? If [:print:] includes only

MS Excel Vba Arabic unicode

北城余情 提交于 2021-02-18 19:42:38
问题 I have a text file and a macro enabled excel file. the excel file gets (using vba) the string (arabic text) from the text file per line then put it on the sheet1 cells. The problem is the string is not properly displayed. It is displayed in random Japanese characters. (My windows locale is Japan). Here is my code: Open FilePath For Inputs As #1 Do Until EOF(1) Line Input #1, textline ActiveWorkbook.sheets(1).Cell(1,1).Value = textline 'MsgBox(textline) Loop Close#1 Question: How can I get the

PHP intl country code 2 chars to country name

不问归期 提交于 2021-02-18 08:59:30
问题 I'm triying to convert, using PHP, 2 characters country code (ISO 3166-1) to country names, or intl country codes, so I can translate the country name. Using Locale::getDisplayRegion needs locale codes for languages ( nl_NL ) and all I have is the 2 characters country code. I don't want to rely on Webservices, but I can think on the geoip extension (I can't find a solution using it anyway) Is there any way to get the 2 chars country code and convert it to localiced country name in PHP without

can't make locale work on Linux

可紊 提交于 2021-02-10 18:51:52
问题 I am writing an PHP application and using the gettext module to translate to different languages. The code is working as I expect on my local computer (Windows running WAMP), but i can't make it work on the server (Unix + apache2) { $locale_folder = dirname(dirname(dirname(__FILE__))).'/locale/'; $locale = 'he_IL'; $domain = 'myapp'; $autoreload = true; // activate the locale setting setlocale(LC_ALL, $locale); setlocale(LC_TIME, $locale); putenv("LANG=$locale"); putenv("LANGUAGE=$locale");

can't make locale work on Linux

耗尽温柔 提交于 2021-02-10 18:51:34
问题 I am writing an PHP application and using the gettext module to translate to different languages. The code is working as I expect on my local computer (Windows running WAMP), but i can't make it work on the server (Unix + apache2) { $locale_folder = dirname(dirname(dirname(__FILE__))).'/locale/'; $locale = 'he_IL'; $domain = 'myapp'; $autoreload = true; // activate the locale setting setlocale(LC_ALL, $locale); setlocale(LC_TIME, $locale); putenv("LANG=$locale"); putenv("LANGUAGE=$locale");

Error: “unsupported locale setting” on Python / OSX

折月煮酒 提交于 2021-02-09 20:44:24
问题 I've got the following error trying to run a local Python scriot on OSX Lion 10.7: You are using the base settings file. You are advised to create a local.py file (based on local_sample.py) with your personal settings. Traceback (most recent call last): File "manage.py", line 39, in <module> detect_port(sys.argv) File "manage.py", line 22, in detect_port default_port = getattr(settings, 'RUNSERVER_PORT', None) File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 53, in _

Error: “unsupported locale setting” on Python / OSX

我与影子孤独终老i 提交于 2021-02-09 20:44:20
问题 I've got the following error trying to run a local Python scriot on OSX Lion 10.7: You are using the base settings file. You are advised to create a local.py file (based on local_sample.py) with your personal settings. Traceback (most recent call last): File "manage.py", line 39, in <module> detect_port(sys.argv) File "manage.py", line 22, in detect_port default_port = getattr(settings, 'RUNSERVER_PORT', None) File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 53, in _