We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Russian letters: how to write
Page Index Toggle Pages: 1
Russian letters: how to write? (Read 847 times)
Russian letters: how to write?
Mar 20th, 2010, 2:23am
 
Hi! When I try to display russian letters on the screen, I always see some strange symbols from American ASCII table (from 128 to 255).

How can I dispay russian text? Help me please somebody...
Re: Russian letters: how to write?
Reply #1 - Mar 20th, 2010, 8:47am
 
You have to use Unicode characters (UTF-8 in source) and a font supporting these codepoints.

[EDIT] Quick test on Windows XP:
Code:
size(500, 100);
PFont f = createFont("Arial", 72);
textFont(f);
text("Русский", 5, 70);
Re: Russian letters: how to write?
Reply #2 - Mar 20th, 2010, 9:32am
 
Yes, it works, but when I read russian word from file and then screen them, I see the same thing...
May be Processing don't support any languages exepting English?
Re: Russian letters: how to write?
Reply #3 - Mar 20th, 2010, 10:07am
 
This is not about languages, it's all about encodings. First make sure you text file is UTF-8 encoded, as Philho pointed out.

Please post some code so we can have a closer look to your problem!
Re: Russian letters: how to write?
Reply #4 - Mar 21st, 2010, 4:38am
 
The problem was ib using loadbytes() function. I lost information by that. loadStrings() works correctly and load russian words.
Thank everybody!
Page Index Toggle Pages: 1