Questions tagged [icu4j]

ICU - International Components for Unicode

This extends Java's Unicode and internationalization support, focusing on improving performance, keeping current with the Unicode standard, and providing richer APIs, while remaining as compatible as possible with the original Java text and internationalization API design.

49 questions
0
votes
1 answer

icu4j BreakIterator returns incorrect word boundaries for Chinese on Linux

My application needs to be able to detect the number of words in a string. I am using the ICU4J library for this, specifically the BreakIterator. This code needs to work for English, Chinese, Japanese, and German. I found that Chinese seems to work…
whomer
  • 575
  • 9
  • 21
0
votes
0 answers

How to read text files using ICU4J?

I have to read text file using ICU4J, generally we use BufferedReader to read text file, but I am new to ICU4J. Can anyone suggest me how to read text files using ICU4J?
rani
  • 11
0
votes
2 answers

Why doesn't ICU4J match UTF-8 sort order?

I am having a hard time understanding unicode sorting order. When I run Collator.getInstance(Locale.ENGLISH).compare("_", "#") under ICU4J 55.1 I get a return value of -1 indicating that _ comes before #. However, looking at…
Gili
  • 86,244
  • 97
  • 390
  • 689
0
votes
1 answer

How to not use locales digits when formatting something with ICU4j

I've upgraded to Java 8 recently and ran into an "issue" with formatting a date. JDK 8 allows providers to be used for certain g11n/i18n functions, and if you have ICU on the classpath it should pick that up. This isn't really an issue as much as an…
Nicholas
  • 7,403
  • 10
  • 48
  • 76
1 2 3
4