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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:10:15+00:00 2026-05-18T04:10:15+00:00

My Delphi7 program is in a non-English language and uses some Win1250 ANSI characters

  • 0

My Delphi7 program is in a non-English language and uses some Win1250 ANSI characters extensively. (aáíóőű)

I have noticed that under English language Windows XP/Vista/7 systems many accented characters appear non-accented (ie.: o instead of ő, u instead of ű) in Form and Label Captions.

On localized Windows XP/Vista systems there are no problems. But on some Windows 7 systems (maybe only on 64bit versions, I’m not sure) even if the Windows instance is localized, accented characters aren’t displayed normally.

What I’ve also noticed is that on these systems DateToStr will output 11/17/2010 instead of 2010.11.17 – which is the standard localized format.
The funny thing is that I’ve checked it under the regional settings, and the default date format is set to yyyy.mm.dd – why is DateToStr giving me back dd/mm/yyyy instead?

I’ve noticed the same behaviour with currencies (“,” appearing as the decimal separator instead of “.”, etc.).

Any ideas?

Thanks!

  • 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-18T04:10:15+00:00Added an answer on May 18, 2026 at 4:10 am

    I have noticed that under English
    language Windows XP/Vista/7 systems
    many accented characters appear
    non-accented (ie.: o instead of ő, u
    instead of ű) in Form and Label
    Captions.

    Delphi 7 applications are non-unicode (except if you use components like TNT Components), so you need to check active CodePage for non-Unicode applications in Windows. In Win7, go to Control Panel | Region and Language | Administrative | Change system locale, and change the default ANSI CodePage for Windows.

    What I’ve also noticed is that on
    these systems DateToStr will output
    11/17/2010 instead of 2010.11.17 –
    which is the standard localized
    format. The funny thing is that I’ve
    checked it under the regional
    settings, and the default date format
    is set to yyyy.mm.dd – why is
    DateToStr giving me back dd/mm/yyyy
    instead?

    This seems to be same as the below report:
    http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/b4f90f07-206c-494b-8d14-ee17bfa689e0

    It seems to be a bug in Windows. I had the same problem in one of my projects written for a Slovenian customer. I told the customer to set change current Date/Time settings to something different, save the changes, then go back to Date/Time settings, and change it back to his desired format. That would fix the problem.

    Also in the link above, a programming workaround is mentioned:

    From S.B.Christensen:

    Hi Tim

    I just had the same issu as you (also
    doing Delphi development).

    If you wish to avoid your users to do
    the workaround themselves, use the
    following unit as the first in your
    project:

    unit Win7;

    interface

    uses SysUtils, Windows;

    implementation

    initialization
    SetThreadLocale(LOCALE_USER_DEFAULT);
    GetFormatSettings;
    end.

    I haven’t tested the code myself, cuz the previous workaround worked fine for me.

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

Sidebar

Related Questions

I've run into the following problem: My Delphi7 program runs smoothly on most computers
I have just got a new machine running Windows 7. I have installed Delphi7
I am using Delphi7 TClientDataSet to read and write XML files for some of
If I compile this Delphi 2007 project program MyProject; {$APPTYPE CONSOLE} procedure Test; var
I am using Python4Delphi to embed Python in a Delphi program. Versions: Python 2.6.4,
im trying to send a packet from my C program to my Delphi program,
I am trying to create a PHP script, and a Delphi program to talk
I am trying to design an event driven system where the elements of the
The Delphi debugger is great for debugging linear code, where one function calls other

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.