Search code examples
javalocale

JAVA API to get the typographically correct quotation marks for a specific Locale


Is there an API in Java to obtain the typographically correct quotation marks (opening + closing) for a specific Locale?

See for example this table:

https://de.wikipedia.org/wiki/Anf%C3%BChrungszeichen#Andere_Sprachen

(It's in German, but one look at the page and you'll know what I mean.)


Solution

  • you can try using ICU4J project, e.g. class LocaleData