Questions tagged [icu]

The International Components for Unicode is a set of cross-platform open source C/C++ and Java libraries for Unicode and globalization support. It is developed by the Unicode Consortium. Use this tag when you have a question about using the ICU. Be sure to include the appropriate language tag and the version of ICU that you are using.

The International Components for Unicode supports C/C++ (ICU4C) and Java (ICU4J), and is available under an open source license. See the ICU-TC home page for documentation and licensing details.

It uses .

771 questions
0
votes
1 answer

Parsing a time stamp in a string using the ICU library, what am I doing wrong?

I'm trying to use the ICU library to convert a time stamp from a string to a time_t value. To do so, I though all I had to do is create a time instance and call its parse() function. Unfortunately, all I get is a U_ILLEGAL_ARGUMENT_ERROR from the…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
0
votes
2 answers

icu4c + Mapnik - I want to switch icu4c from 55.1 to 54.1 to get Mapnik to work

What is the best way to downgrade icu4c from 55.1 to 54.1 on Mac OS X Mavericks. I tried brew switch icu4c 54.1 and failed. Reason to switch back to 54.1 I am trying to setup and use Mapnik. I was able to install Mapnik from homebrew - brew install…
Ratnadeep
  • 123
  • 1
  • 11
0
votes
1 answer

When building libicu on ubuntu, where do I define U_USING_ICU_NAMESPACE?

I am building libicu on Ubuntu Linux. In Recommended Build Options, the documentation suggests that I should use -DU_USING_ICU_NAMESPACE=0 and -DU_CHARSET_IS_UTF8=1. My build process is as follows. wget -nv…
Boinst
  • 3,365
  • 2
  • 38
  • 60
0
votes
1 answer

How to decode UTF-8 without having illegal input replaced by a replacement character?

icu::UnicodeString::fromUTF8 replaces illegal input with U+FFFD. Is there a way to detect whether it has done this, so that I can throw an exception?
user1804599
0
votes
1 answer

Space in character class working differently from \x20 in ICU4J transliterator

I wanted to modify icu4j cyrillic to latin to keep spaces. The obvious thing is @Test public void test1() { String greek = "'E\u00E9 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430"; String id1 = "Any-Latin; NFD;…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
0
votes
1 answer

Get Date/Time Pattern in ICU4J

I have a requirement where I need the pattern ICU uses to format the given date/time. For example: If I have something like DateFormat.getDateInstance(DateFormat.SHORT, en_US).format(currentDate) gives me 5/3/2015, then I need an API which can tell…
MAmateur
  • 139
  • 2
  • 9
0
votes
1 answer

icu 54 - undefined reference

Everything worked well with boost1.53, but when with boost 1.46, the project won't compile. I do understand there is no dependency between boost1.46 and icu, but it's weird that the same code could work normally with a higher version boost which…
Tilney
  • 318
  • 2
  • 17
0
votes
1 answer

Elastic Search : Configuring icu_tokenizer for czech characters

The icu_tokenizer in elasticsearch seems to break a word into segments when it encounters accented characters such as Č and also returns strange numeric tokes. Example GET /_analyze?text=OBČERSTVENÍ&tokenizer=icu_tokenizer returns "tokens": [ …
Deepak N
  • 2,561
  • 2
  • 30
  • 44
0
votes
1 answer

boost::locale 1.57.0 with ICU library 54.1 under Windows (VC++ 2010)

I'm trying to build Boost::locale 1.57.0 with ICU library support 54.1 under Windows 8.1. I have the library on C:\icu with files like…
0
votes
1 answer

Get localized currency display name from CLDR in PHP

I need to output localized currency names on a webpage. USD | ameriški dolar EUR | euro I can't seem to find a way to do it through the intl library, although the data is present in Unicode CLDR. E.g. Slovenian…
SlimDeluxe
  • 733
  • 8
  • 18
0
votes
1 answer

ICU 51 not loading ICU data mapping table

I recently moved from using ICU32 to ICU51. But now Mapping table (.ucm) is not getting loaded. I searched the net ant tried the fixes like making sure the path is correct and ends with backslash but still the mapping table is not getting…
Jitendra
  • 732
  • 1
  • 9
  • 29
0
votes
3 answers

Symfony ICU Issue, routes using locale different than EN will fail

After installing Yosemite and a new version of MAMP and when I'm trying to execute domain/app_dev.php/es/venues/3/show This route is rendering a form containing a language type field, so it's requiring ICU. being 'es' the locale i get errors. If…
Arco Voltaico
  • 860
  • 13
  • 29
0
votes
1 answer

Boost Locale – accessing ICU functions directly

I recently began using Boost Locale traversing and boundary analysis of Unicode strings. I’ve used some of the features available for case conversion, i.e.: to_upper(), which appears to wrap ICU’s toUpper() function. I didn't find Boost Locale…
Caroline Beltran
  • 888
  • 2
  • 9
  • 22
0
votes
2 answers

Exception when try to create new collation using ICU for .NET

Try to create new collation using ICU extension for .NET: var newCollation = Icu.Collation.Collator.Create("Cyrillic_General_CI_AS"); Following exception occures: An unhandled exception of type 'System.ArgumentException' occurred in icu.net.dll…
Alderven
  • 7,569
  • 5
  • 26
  • 38
0
votes
1 answer

Unable to add ICU extension to Visual Studio Project

When I try to add ICU extension to my Visual Studio 2013 Project, icu.net.dll successfully added, the other DLL's (icudt40.dll, icuin40.dll, icuuc40.dll) failed to add with the following error: "A reference could not be added. Please make sure that…
Alderven
  • 7,569
  • 5
  • 26
  • 38