Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

TEdit/Ascii Problem

Posted on 2004-04-12
5
216 Views
Last Modified: 2013-12-03
I have a form with an edit box and a button and I changed the font charset property to OEM_Convert to display DOS extended ascii characters on the edit box by using the button. Everything is working I can display the ascii code, except that when I copy the character from the edit box
(ex. chr(158) peseta sign) and paste it into notepad the character is different it's chr(0158).

Is their a way to copy exactly whats on the edit box to notepad? Already tried copytoclipboard still the same result. Thanks a million!
0
Comment
Question by:razorspells
5 Comments
 
LVL 6

Accepted Solution

by:
CyberGhost earned 50 total points
ID: 10811545
Must change the charset on font you use in Notepad as well.

Alt+0158 is different in Central-European font charset and also different in Turkish charset for instance.

regards
CyberGhost
0
 
LVL 1

Expert Comment

by:rfedyk
ID: 10812230
Charsets are conventions that are supposed to standardize displayed characters.  

However, as CyberGhost points out, its always about the font and not the charset.

For example, a font designer can put the face of Mickey Mouse in glyph position 158, if they want to, so whether you see a pesata symbol or MM depends on some other crazy person.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question