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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:05:17+00:00 2026-05-29T22:05:17+00:00

I have a DBF file that is encoded as Windows-ANSI (Windows Code Page 1252).

  • 0

I have a DBF file that is encoded as Windows-ANSI (Windows Code Page 1252). I am using an ODBC driver to import this file as a table into a SQL Server database. When I do I lose some character information.

First, to verify the DBF file was encoded as expected I opened up the file with a hex editor and searched for the character in question. It’s a “small-bullet” on code page 1252, and it was stored at 0x95 in the file so, for at least that character, the encoding seems to be as expected.

I did a search and found someone saying that importing to a nvarchar as opposed to a varchar column would make a difference, so when I did the import I re-mapped the column containing the problematic character to nvarchar.

The database it is imported into has a collation of “SQL_Latin1_General_CP1_CI_AS” and from a page I read on MSDN the “CP1” indicates this should be equivalent to windows code page 1252.

When I do the import the character is being imported as 0xf2 or 0x5625. I haven’t found any reason as to why the different imports to this point.

Has anyone come across an issue such as this? What did you do to resolve it? Anything I should be looking into or trying that I haven’t as of yet?

  • 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-29T22:05:23+00:00Added an answer on May 29, 2026 at 10:05 pm

    This appears to be an issue with an old driver. Upgrading to a newer DBF driver fixed the character issue but presented another issue. The new drivers lack any “ordinal” information in the column schema, so it can’t be used with the DTS Wizard, or at least I couldn’t find a way to do so.

    Installing the Microsoft Visual FoxPro OLEDB drivers worked flawlessly. Once they’re installed, they show up as a data source in the DTS Wizard, and can be used to import directly. This fixed my character issue and I was able to do my import.

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

Sidebar

Related Questions

how is this solution I am using now: I have a 1MB .dbf file
I have a piece of code that goes like this File file = null;
I have a form page in PHP that reads a DBF, and conditionally converts
I have a dbf file, and I can see in the view that types
I'm trying to query a DBF file using System.Data.Odbc.OdbcConnection. It works correctly when the
I have a rather large DBF file, about 40 megs, that I need to
I have a Visual Fox Pro Database (.DCX file with associated .DBF files) that
I have a DBF file on a network share that I'm trying to select
I have an SSIS package stored in the file system, that imports Paradox (.dbf)
i have this code: openFileDialog1.Filter = csv files (*.dbf)|*.dbf; openFileDialog1.FilterIndex = 1; openFileDialog1.RestoreDirectory =

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.