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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:03:03+00:00 2026-06-14T11:03:03+00:00

Im having a problem where a program i made cant display a string because

  • 0

Im having a problem where a program i made cant display a string because it contains a unknown char. The program is encoded in latin i guess but how can it to utf-8?

I cant simply change the char because we are receiving this from our clients.

Or do i need to change this in SQL?

  • 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-06-14T11:03:04+00:00Added an answer on June 14, 2026 at 11:03 am

    C++ builder 5 does not support natively UTF8. It uses the charset defined in Windows, under Control Panel / Regional Configuration.
    For example, if your live in Sweden, probably your charset will be adapted to Swedish.
    If you try to open a text from a database or a file from your application, the text needs to be codified in the same charset that Windows, Swedish in this example. In another case, you will get strange characters.

    Following the example, if you want to display latin characters from your Swedish application, you need can use Unicode VCL controls like Tnt controls

    Then, after reading the string, you need to convert it from latin to Unicode before to put it in the Tnt control. You can use the
    MultiByteToWideChar function.
    In any case, I would suggest you to update your C++ Builder to a recent version to support natively Unicode, the life is a lot easier.

    If you simply wants to codify the string in the database and it does not care if you lose a symbol, you can convert the charset of text from latin to the Windows charset before to enter it in the database. You can use Notepad++ to convert the charset of a text.

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

Sidebar

Related Questions

I wrote this code because I'm having a similar problem in a larger program
I'm having a serious output problem with a program i made for my homework.
I'm having problem when running my Windows Forms program. In the program, I have
I'm having a very odd problem with my program and am hoping you can
Im having a very odd problem. Im trying to install a Python program. Im
all. I'm having a bit of weird problem with client server program. I have
I'm having problems with smtplib tying up my program when email sending fails, because
I am having some problems with writing a CSV file. The program, I made
Im having a problem in a program I'm making and I can't figure out
I am having some issues with a small program I have made that edits

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.