LB Booster
« Is it just me? »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:34am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Is it just me?  (Read 1257 times)
James
New Member
Image


member is offline

Avatar




PM


Posts: 42
xx Is it just me?
« Thread started on: Feb 9th, 2012, 2:38pm »

Is it just me, or does LBB have a bit of Unicode capability?

I read a line in of Unicode, trim$() it, and it looked clean. smiley

-------

1 Cor. 6:19 What? know ye not that your body is the temple of the Holy Ghost which is in you, which ye have of God, and ye are not your own?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Is it just me?
« Reply #1 on: Feb 9th, 2012, 3:05pm »

on Feb 9th, 2012, 2:38pm, James wrote:
Is it just me, or does LBB have a bit of Unicode capability?

No, it's ANSI, like LB. Because, in both LB and LBB, strings can contain anything there is no reason why you shouldn't store Unicode text (in either UTF-8 or UTF-16 encoding) in a string variable, but there's no native way of displaying it.

What exactly do you want to do?

Richard.
User IP Logged

James
New Member
Image


member is offline

Avatar




PM


Posts: 42
xx Re: Is it just me?
« Reply #2 on: Feb 9th, 2012, 4:56pm »

on Feb 9th, 2012, 3:05pm, Richard Russell wrote:
What exactly do you want to do?

Richard.


I would like to be able to read/write Korean, Chinese, Arabic, and Russian text files. smiley

------

John 14:12) Verily, verily, I say unto you, He that believeth on me, the works that I do shall he do also; and greater [works] than these shall he do; because I go unto my Father.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Is it just me?
« Reply #3 on: Feb 9th, 2012, 9:27pm »

on Feb 9th, 2012, 4:56pm, James wrote:
I would like to be able to read/write Korean, Chinese, Arabic, and Russian text files.

There shouldn't be any problem with the files, or with string variables, as they can both contain Unicode text. If you want to make use of native functions like INSTR, STR$, VAL, WORD$ or WINSTRING then you will almost certainly need to use UTF-8 encoding rather than UTF-16.

The only real issue is actually displaying the text, since the native controls are ANSI only. You'd need to use the Windows API for that.

I certainly don't take the view that LB (or LBB) are unsuitable for Unicode applications, it just requires a little more effort.

Richard.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Is it just me?
« Reply #4 on: Feb 9th, 2012, 10:08pm »

on Feb 9th, 2012, 3:05pm, Richard Russell wrote:
No, it's ANSI, like LB.

To avoid any misunderstanding, LBB does have some limited support for Unicode in the mainwin and when outputting to the printer using lprint, but that's all.

For example try this:

Code:
 !@vdu.m.c& OR= &80
 print "Это демонстрация российского текста, "; 
 print "это пишется слева направо." 
(the strings are UTF-8, but displayed here as ANSI).

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls