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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:17:07+00:00 2026-05-28T04:17:07+00:00

Currently we are migrating from Delphi 2007 to Delphi XE2 to support Unicode .

  • 0

Currently we are migrating from Delphi 2007 to Delphi XE2 to support Unicode . We store a large XML data as blobs in the database. To insert the blob value into the database field we use the code below

Param.DataType := ftBlob;
Param.AsBlob := Value;

But now to support unicode stuff, we conveted all the blob fields in the database to nvarchar (max). We changed the above code to

Param.DataType := ftwideString;
Param.AsString := Value;

Is this the right thing to do, or should it be handled differently so as to store Unicode data into the database.

  • 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-28T04:17:08+00:00Added an answer on May 28, 2026 at 4:17 am

    BLOBs will store whatever you throw at them without inferring anything about it. Although they may have little manipulation capabilities, they will never modify the data. On the other hands, a character based field (even a CLOB), will have an associated character set. Thereby data stored there will be converted back and forth from the source character set and the destination one. For example if your XML file is UTF-8 encoded and the field is UTF-16 it will be converted when written and read. Of course if both encodings are the same no conversion is performed. If your database lacks an XML type, I would store them in binary lobs if they could be in different encodings and no operations upon them (but writing/reading) are needed. If they are always in the same encoding a character lob could be easier to work with. Using a character field with a large XML file can lead to errors due to the max field size.

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

Sidebar

Related Questions

We're currently migrating our database back-end from Firebird to PostgreSQL. We use NHibernate as
I'm currently migrating a tonne of user data from CSV spreadsheets to an SQL
I am currently in the process of migrating our software solution from Delphi 7
I'm currently working on migrating an application from MS-Access to MS SQL Server. In
I'm currently migrating my sqllite application to using core data. When I created the
We are currently migrating from PHP4 to PHP5 and have discovered an issue. In
Im currently looking at migrating from fluent nHibernate to ADO.Net Entity Framework 4. I
We are currently migrating a WCF service from IIS 6 to IIS 7. The
We are currently considering the option of migrating from svn to git for all
We are currently evaluating options for migrating from hand-written persistence layer to ORM. We

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.