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 8496289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:48:40+00:00 2026-06-10T23:48:40+00:00

I am using java servlets. In my database some strings has characters Å, Ä

  • 0

I am using java servlets. In my database some strings has characters Å, Ä and Ö. When i check those strings contains these special characters then its always false. How can i check if a string contains these special characters. I am using Eclipse. Thanks in advance.

  • 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-10T23:48:42+00:00Added an answer on June 10, 2026 at 11:48 pm

    These are extended ASCII chanracters.

    byte[] data=new byte[1];
    data[0]=(byte)197;  197 is for Å
    String char1=new String(data,"ISO-8859-1");
    

    You can create String “char1” like above and then Compare with Target String.

    Code for Getting lookup :

    for( int i=127;i < 256;i++)
            {
                byte[] char= new byte[1];
                char[0]= (byte)i;
                System.out.println("Data : "+char+","+
    new String(char, "ISO-8859-1")+","+i); //'i' will give u code. 197 is for Å so on.
            }
    

    See this table, Charset supported by Java SE 6 : Source : http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html

    US-ASCII    Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set
    ISO-8859-1      ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1
    UTF-8   Eight-bit UCS Transformation Format
    UTF-16BE    Sixteen-bit UCS Transformation Format, big-endian byte order
    UTF-16LE    Sixteen-bit UCS Transformation Format, little-endian byte order
    UTF-16  Sixteen-bit UCS Transformation Format, byte order identified by an optional byte-order mark
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using java If I store windows paths in a h2 database, and then try
I am trying to connect to database using java servlets. Somehow I am not
I'm sending some HTML code back to an iframe using a java servlet and
I have web application written in java using Eclipse. It has just one servlet
Using Java (1.6) I want to split an input string that has components of
I have connected Java program to Oracle database using JDBC. I want to store
In a java web application (servlets/spring mvc), using tomcat, is it possible to run
I'm currently maintaining a small-medium sized java web application (using only plain JSPs/Servlets) that
I am using PostgreSQL as my database and java servlet to communicate with PostgreSQL.
I developed a java application using swings and servlets(IDE used:Netbeans).I want to convert the

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.