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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:36:43+00:00 2026-05-16T06:36:43+00:00

I am trying to fetch records from Oracle 9i database whose value are ‘FOO

  • 0

I am trying to fetch records from Oracle 9i database whose value are ‘FOO – BAR’ for a particular column.

The ‘FOO – BAR’ condition values are present in the table, But when I run the query, the results are not coming.

After breaking my head for sometime, figured out that there is a difference in the size of the hypen’s.

'FOO – BAR'
'FOO - BAR'

This time I copied (through SQLDeveloper) the DB value and pasted the value in Eclipse IDE. I did NOT see any difference in the Eclipse. When I run the query from IDE, to my surprise it worked and the values were coming.

I deployed the same class file to our servers(UX box), and again back to square no 1 – the values are not coming.

I gave a try changing the file encoding of my IDE from default(Cp1252) to UTF-8 and everything is fine now.

Can some one explain what’s happening? Will the size of hyphen varies with encoding?
do we have three different kinds of dashes?

  • 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-05-16T06:36:43+00:00Added an answer on May 16, 2026 at 6:36 am

    There are plenty of different Unicode characters for em-dash, en-dash, hyphen etc. They’re used in different contexts in text.

    You may want to read the “Dash” wikipedia article for more information. Note that a hyphen isn’t quite the same thing 🙂

    As for how encodings come into things – it will depend on how you’re inserting, retrieving and then displaying the data. I wouldn’t start using cut and paste – that may very well try to find the closest available value to the actual data represented in the database.

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

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First of all, you have to have a background in… May 16, 2026 at 9:52 am
  • Editorial Team
    Editorial Team added an answer What you need to is pass the session id to… May 16, 2026 at 9:52 am
  • Editorial Team
    Editorial Team added an answer Yes it's possible You can use prepared-statements for it, and… May 16, 2026 at 9:52 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am trying to fetch some records from table but when i use OR
I am trying to fetch records based on two dates from sql server... Select
I am trying to join 2 tables and trying to fetch the records, which
I am trying to fetch records in MySQL using a simple used submitted field.
I am trying to delete the records from the users table in mysql, the
I am trying to build a function that extracts information from a database and
I am trying to call a stored procedure over a database link. The code
I have a Dataset that contains tables from a university database, two(actually more) of
I am trying to fetch pages using httpwebrequest, but the links also have relative
I'm trying to figure out the best way to create a class that can

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.