New topic: 

trouble displaying foreign language text (unicode maybe)

<http://forums.realsoftware.com/viewtopic.php?t=47130>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        robertburkhalter          Post subject: trouble displaying 
foreign language text (unicode maybe)Posted: Sat Mar 02, 2013 5:02 pm           
              
Joined: Mon Jan 09, 2006 1:27 pm
Posts: 18                Hi.  I'm having trouble diplaying foreign text.  I've 
got two programs.  One of them is able to display foreign text in its text 
area, the second program cannot.

I cannot figure out what I'm doing wrong (yet).

In the first program when I write textarea1.text = chrb(209) + chrb(130), the 
field displays "т".

In the second program, it displays as two characters "—Ç"

I would appreciate any thoughts you might have.

Oh, when I do "msgbox chrb(209) + chrb(130)"  I get the desired "т".

Thanks for your time   
                             Top                npalardy          Post subject: 
Re: trouble displaying foreign language text (unicode maybe)Posted: Sat Mar 02, 
2013 6:16 pm                       Real Software Engineer          
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7745
Location: Canada, Alberta, Near Red Deer                robertburkhalter 
wrote:Hi.  I'm having trouble diplaying foreign text.  I've got two programs.  
One of them is able to display foreign text in its text area, the second 
program cannot.

I cannot figure out what I'm doing wrong (yet).

In the first program when I write textarea1.text = chrb(209) + chrb(130), the 
field displays "т".

In the second program, it displays as two characters "—Ç"

I would appreciate any thoughts you might have.

Oh, when I do "msgbox chrb(209) + chrb(130)"  I get the desired "т".

Thanks for your time

What platform ?
What font are you using (some fonts dont have glyphs for some characters) 

And you should note that chrb(209) + chrb(130) only works for some encodings.
Real Studio uses UTF-8 so you can actually just type in  "т" in a string & it 
should show.      
_________________
Norman Palardy (Real Software)
––––––––––––––––––––––––––––––––––––––––––––––––––
Real Studio Developer Conference - April 23 - 26, 2013
http://www.realsoftware.com/community/realworld.php  
                             Top                robertburkhalter          Post 
subject: Re: trouble displaying foreign language text (unicode maybe)Posted: 
Sun Mar 03, 2013 1:44 am                         
Joined: Mon Jan 09, 2006 1:27 pm
Posts: 18                when I used this

TextArea1.text=DefineEncoding(chrb(65) + chrb(209) + chrb(130), Encodings.UTF8)

it displayed "Aт".  Perfect.  Thanks for the tip.  I really appreciate what 
you said.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to