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

  • SEARCH
  • Home
  • 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 7799963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:28:43+00:00 2026-06-02T00:28:43+00:00

My application takes an input from the user. Some of the Asian user enter

  • 0

My application takes an input from the user. Some of the Asian user enter text with latin-like characters but encoded with Unicode range U+FF01–FF5E.
When I try to compare this input strings with something in ASCII they are not equal (as expected).

Here is Wikipedia article about the characters range http://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms

How do I convert characters from that range to ASCII equivalents?

Any help appreciated.

  • 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-02T00:28:44+00:00Added an answer on June 2, 2026 at 12:28 am

    If these are the only characters you need to convert, you could use:

    String convertLatinLikeToAscii(String text) {
        char[] chars = text.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            char c = chars[i];
            if (c >= 0xff01 && c <= 0xff5e) {
                // Map U+FF01 to U+0021 etc
                chars[i] = (char) (c - (0xff01 - 0x21));
            }
        }
        return new String(chars);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a blackberry application takes input from user then send input to
I am writing a web application that takes a script input from a client-side
I have an application that takes some input and generates configuration files as output.
If I have a 3 layer web forms application that takes user input, I
Our application takes text from a web form and sends it via email to
i`m trying to get a string handler which takes input from user in a
I need to process the input from the user in a console application, and
I am developing an OS X application that is supposed to take input from
i am building an application Voice Calculator which takes input as a voice and
I want to write an application that takes an XML-schema as input and has

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.