BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Displaying Non-English Characters in a TMemo

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
XCalibur
Guest





PostPosted: Sat May 12, 2007 4:18 am    Post subject: Displaying Non-English Characters in a TMemo Reply with quote



Hi,


I've changed the CHARSET of the TFont property in a TMemo control to the
appropriate charset (Cyrilic) but I still does not display the letters
properly.

I pasted some tex and all it displays is "?????" I tried the same in
Notepad and it displays them perfectly. I just pasted the text. Didn't
change anyting.

I have a Form1 and a Memo1. I press F9 to run the program, I paste some
Cyrilic text and I get "?????" :(

How can I make it so it shows non-english chars?


Thanks
Back to top
Vladimir Stefanovic
Guest





PostPosted: Sat May 12, 2007 4:40 pm    Post subject: Re: Displaying Non-English Characters in a TMemo Reply with quote



Quote:
How can I make it so it shows non-english chars?

VCL & it's components are not Unicode based, and that's
the major problem. I suggest you to look for some 3rd party
Unicode controls for that.

If it's a questions of cyrillic language, one way of doing that
is:

Control Panel > Regional and Language Options > Advanced
[select desired Cyrillic language, like Serbian (Latin) ]
OK to load from HD, OK to restart.

P.S.

NotePad (AFAIK), like MS Word emulates code pages, do it's
a completey different story.




--
Best Regards,
Vladimir Stefanovic
Back to top
XCalibur
Guest





PostPosted: Sat May 12, 2007 5:15 pm    Post subject: Re: Displaying Non-English Characters in a TMemo Reply with quote



Thanks Stefan a lot! I've come to the sad realization that they do not
support Unicode.

RichEdit however does support it but as you said, it is based on different
code.






"Vladimir Stefanovic" <antivari (AT) po (DOT) sbb.co.yu> wrote in message
news:4645a79a (AT) newsgroups (DOT) borland.com...
Quote:
How can I make it so it shows non-english chars?

VCL & it's components are not Unicode based, and that's
the major problem. I suggest you to look for some 3rd party
Unicode controls for that.

If it's a questions of cyrillic language, one way of doing that
is:

Control Panel > Regional and Language Options > Advanced
[select desired Cyrillic language, like Serbian (Latin) ]
OK to load from HD, OK to restart.

P.S.

NotePad (AFAIK), like MS Word emulates code pages, do it's
a completey different story.




--
Best Regards,
Vladimir Stefanovic


Back to top
JD
Guest





PostPosted: Sat May 12, 2007 6:09 pm    Post subject: Re: Displaying Non-English Characters in a TMemo Reply with quote

"XCalibur" <wifitech (AT) optusnet (DOT) com.au> wrote:
Quote:


Please direct your browser to:

http://info.borland.com/newsgroups/guide.html

and read the guide lines that Borland has published for
accessing their server. Note that you are asked to not
over quote and that it is grounds for cancelation.

Please trim your posts.

Thanks!

~ JD
Back to top
Hans Galema
Guest





PostPosted: Mon May 14, 2007 8:10 am    Post subject: Re: Displaying Non-English Characters in a TMemo Reply with quote

XCalibur wrote:

Quote:
I've changed the CHARSET of the TFont property in a TMemo control to the
appropriate charset (Cyrilic) but I still does not display the letters
properly.

Then show your code as I do it here all the time. TMemo does cyrillic
when you set it up correctly and you type russisan.

Quote:
I pasted some tex and all it displays is "?????" I tried the same in
Notepad and it displays them perfectly. I just pasted the text. Didn't
change anyting.
I have a Form1 and a Memo1. I press F9 to run the program, I paste some
Cyrilic text and I get "?????" Sad

Copy and pasting is a different story though. I have problems with that too.

But typing is ok.

Hans.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.