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?
 
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.
0
 
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;
0
 
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;
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
petershaw9Author Commented:
In the ascii table µ should be #230. If use #182 then it will be hard to auto display the other spcecial character.
0
 
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.
0
 
bernaniCommented:
Like this (works on my XP system - default 'MS Sans Serif' font and 'DEFAULT_CHARSET'):

memo1.SelText := #$03BC;



0
 
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.