How can I let memo to display character µ

Hi

How can I let memo display µ or write µ into a text file?

Memo1.text := #230  
The memo1 will display æ not µ

Thank u

Peter
petershaw9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZhaawZSoftware DeveloperCommented:
It shows you (ae) because of the font/charset you're using (it's default_charset by default). Try this:
Memo1.Font.Charset := OEM_CHARSET;
Memo1.Text := #230;
ZhaawZSoftware DeveloperCommented:
ah, no, it's not the same character, sorry (looks only similar on my pc). However you may try #181 instead of #230

memo1.Font.Size := 12;
Memo1.Text := #181;
petershaw9Author Commented:
In the ascii table µ should be #230. If use #182 then it will be hard to auto display the other spcecial character.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

ZhaawZSoftware DeveloperCommented:
wich ascii table did you use?
as far as i know, only first 127 chars are "fixed", i.e., do not depend on font/charset.
bernaniCommented:
Like this (works on my XP system - default 'MS Sans Serif' font and 'DEFAULT_CHARSET'):

memo1.SelText := #$03BC;



petershaw9Author Commented:
I have a copy of ASCII table, but I forgot where it is from. Using this table I can correctly type these special character on delphi, notepad and here. like 224 is α, 225 is ß, 226 is Γ, 227 is π, 128 is Ç, 129 is ü.

So this like font, charset independent. Something about windows. Think I can change font, charset for memo control, but how about write this into textfile?

Peter
ZhaawZSoftware DeveloperCommented:
This DEPENDS on a charset/font you're using. 225 does not give me that symbol which looks like "B", 128 does not give me smth like "C" and 129 does not give me smth like "u" (those are 223 for "B" and 252 for "u" with baltic charset, and there are NO such symbols in cyrillic charset).

To make this working on all PCs, you'll have to use (1) correct font/charset or (2) unicode.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.