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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:08:31+00:00 2026-05-10T16:08:31+00:00

For some reason, lately the *.UDL files on many of my client systems are

  • 0

For some reason, lately the *.UDL files on many of my client systems are no longer compatible as they were once saved as ANSI files, which is no longer compatible with the expected UNICODE file format. The end result is an error dialog which states ‘the file is not a valid compound file’.

What is the easiest way to programatically open these files and save as a unicode file? I know I can do this by opening each one in notepad and then saving as the same file but with the ‘unicode’ selected in the encoding section of the save as dialog, but I need to do this in the program to cut down on support calls.

This problem is very easy to duplicate, just create a *.txt file in a directory, rename it to *.UDL, then edit it using the microsoft editor. Then open it in notepad and save as the file as an ANSI encoded file. Try to open the udl from the udl editor and it will tell you its corrupt. then save it (using notepad) as a Unicode encoded file and it will open again properly.

  • 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. 2026-05-10T16:08:32+00:00Added an answer on May 10, 2026 at 4:08 pm

    This is very simple to do with my TGpTextFile unit. I’ll put together a short sample and post it here.

    It should also be very simple with the new Delphi 2009 – are you maybe using it?

    EDIT: This his how you can do it using my stuff in pre-2009 Delphis.

    var   strAnsi   : TGpTextFile;   strUnicode: TGpTextFile; begin   strAnsi := TGpTextFile.Create('c:\0\test.udl');   try     strAnsi.Reset; // you can also specify non-default 8-bit codepage here     strUnicode := TGpTextFile.Create('c:\0\test-out.udl');     try       strUnicode.Rewrite([cfUnicode]);       while not strAnsi.Eof do         strUnicode.Writeln(strAnsi.Readln);     finally FreeAndNil(strUnicode); end;   finally FreeAndNil(strAnsi); end; end; 

    License: The code fragment above belongs to public domain. Use it anyway you like.

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

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • 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
  • added an answer I'd vote for bitset: void pbits(std::string const& s) { for(std::size_t… May 11, 2026 at 12:45 pm
  • added an answer How is that any different from hiring developers and compensating… May 11, 2026 at 12:45 pm
  • added an answer If you create a DataTemplate in a resource dictionary and… May 11, 2026 at 12:45 pm

Related Questions

For some reason I never see this done. Is there a reason why not?
For some reason when I attempt to make a request to an Ajax.net web
For some reason when I create a new namespace in Visual Studio 2008 its
For some reason, when I try to install SQL Server 2008 Express , I
I am having trouble with my Visual Studio 2005 IntelliSense for some time now.
Hear lately I've been listening to Jeff Atwood and Joel Spolsky's radio show and
I'm looking for some clarity on the SQL Server log file. I have a
This is probably a silly question, but curiosity has gotten the better of me.

Trending Tags

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

Top Members

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.