Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7841465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:06:24+00:00 2026-06-02T16:06:24+00:00

In Java the String#toLowerCase method uses the default system Locale to determine how to

  • 0

In Java the String#toLowerCase method uses the default system Locale to determine how to handle lowercasing. If I am lowercasing some ASCII text and want to be sure that this is processed as expected which Locale should I use?

EDIT: I’m mainly concerned about programming identifiers such as table and column names in a schema. As such I want English lower casing to apply.

Locale.ROOT states that it is the language/country neutral locale for the locale sensitive operations

Locale.ENGLISH would presumably also be a safe choice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:06:24+00:00Added an answer on June 2, 2026 at 4:06 pm

    Yes, Locale.ENGLISH is a safe choice for case operations for things like programming language identifiers and URL parts since it doesn’t involve any special casing rules and all 7-bit ASCII characters in the ENGLISH case-convert to 7-bit ASCII characters.

    That is not true for all other locales. In Turkish, the ‘I’ and ‘i’ characters are not case-converted to one another.

    "Dotted and dotless I" explains:

    The Turkish alphabet, which is a variant of the Latin alphabet, includes two distinct versions of the letter I, one dotted and the other dotless.

    In Unicode, U+0131 is a lower case letter dotless i (ı). U+0130 (İ) is capital i with dot. ISO-8859-9 has them at positions 0xFD and 0xDD respectively. In normal typography, when lower case i is combined with other diacritics, the dot is generally removed before the diacritic is added; however, Unicode still lists the equivalent combining sequences as including the dotted i, since logically it is the normal dotted i character that is being modified.

    Most Unicode software uppercases ı to I and lowercases İ to i, but, unless specifically set up for Turkish, it lowercases I to i and uppercases i to I. Thus uppercasing then lowercasing, or vice versa, changes the letters.

    The list of special exceptions is maintained at http://unicode.org/Public/UNIDATA/SpecialCasing.txt

    # ================================================================================
    
    # Turkish and Azeri
    
    # I and i-dotless; I-dot and i are case pairs in Turkish and Azeri
    # The following rules handle those cases.
    
    0130; 0069; 0130; 0130; tr; # LATIN CAPITAL LETTER I WITH DOT ABOVE
    0130; 0069; 0130; 0130; az; # LATIN CAPITAL LETTER I WITH DOT ABOVE
    
    # When lowercasing, remove dot_above in the sequence I + dot_above, which will turn into i.
    # This matches the behavior of the canonically equivalent I-dot_above
    
    0307; ; 0307; 0307; tr After_I; # COMBINING DOT ABOVE
    0307; ; 0307; 0307; az After_I; # COMBINING DOT ABOVE
    

    …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to replace the first context of web/style/clients.html with the java String.replaceFirst method
Simple example: we have string Some sample string Of Text. And I want to
Assume two Java String objects: String str = <my string>; String strLower = str.toLowerCase();
I read that in Java, String is immutable, so we can't really use toLowerCase
Take the following Java string: Hello, World I want to take that string and
Can someone suggest me some JAVA string library for JAVA ME that includes basic
Using Java, I want to strip the fragment identifier and do some simple normalisation
I'm using some functionality in Java that I don't really understand so I want
if(!dataFolder.isHidden()) if(System.getProperty(os.name).toLowerCase() .indexOf(windows) > -1){ String command = attrib +h -r -s + dataFolder.getAbsolutePath();
Is Java String.hashcode() completely independent of Locale ? In other words, if someone fiddles

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.