unicode, setting a text inside RB

new BookmarkLockedFalling
davos1
Guest

Guest Avatar

Post by davos1 on Dec 26, 2008 19:52:34 GMT -5

Hello,

when I set a variable like:
alfabeto$= "āīūṅ"
an unsupported character error appears.

I realize that there are some ways to work around like:

1) use html and the decimal part, or

2) use a text box to get the unicode letters, there is no error inside BR and RB assign the variable correctly:

textbox #box, text$
text$ = #box contents$()
print text$
dim letras$(40)
for ciclo= 1 to len(text$)
letras$(ciclo)=left$(text,ドルciclo)
b$=text$ #here the variable is set and printed with out any problem
print b$
print letras$(ciclo)
next ciclo

3)the old fashion way, but it works:
read letter$
data 209,241
a$=a$+chr$(letter) #here the variable is set and printed with out any problem
print a$

4)reading from a file in a variable and printing the variable.

but, is there a way to set directy an unicode string in RB in the form
alfabeto$= "āīūṅ" ?

thanks a lot
Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Post by Carl Gundel - admin on Dec 27, 2008 12:08:32 GMT -5

I'm not quite sure why that error should occur. I'll have to look into it and get back to you.

-Carl
davos1 Avatar
Hello,

when I set a variable like:
alfabeto$= "āīūṅ"
an unsupported character error appears.

I realize that there are some ways to work around like:

1) use html and the decimal part, or

2) use a text box to get the unicode letters, there is no error inside BR and RB assign the variable correctly:

textbox #box, text$
text$ = #box contents$()
print text$
dim letras$(40)
for ciclo= 1 to len(text$)
letras$(ciclo)=left$(text,ドルciclo)
b$=text$ #here the variable is set and printed with out any problem
print b$
print letras$(ciclo)
next ciclo

3)the old fashion way, but it works:
read letter$
data 209,241
a$=a$+chr$(letter) #here the variable is set and printed with out any problem
print a$

4)reading from a file in a variable and printing the variable.

but, is there a way to set directy an unicode string in RB in the form
alfabeto$= "āīūṅ" ?

thanks a lot
davos1
Guest

Guest Avatar