Win7 and extended characters

I notice that Win7 does not display the extended ASCII characters. Previous versions of Windows had no problem with ASCII characters 128-255. Windows 7 only allows Unicode characters. Is there a function that will print this extended characters?

Comments

re: extended characters

I can report that Mike's program works fine in Windows 8.1. I'm not at my Win 7 machine (also have a Vista!!!! machine) but don't see why it wouldn't on those. The degree symbol is one that prints.

rwt

Extended Characters...

Hi.

I have Win 7 and have no trouble with chr$(n) at all. All my programs from back to the earliest Windows days have always worked the same way... I am using Silver 5.33 and Gold 5.5b19, and although the latter is rather buggy, Chr$(n) works OK as does ALT+xxx.

Is there perhaps something wrong with TB ver 6?. In any case, I don't think TB is capable of dealing with Unicode at all, no matter what version. All the versions have the same core code (which has never been changed), and it doesn't work with Unicode.

Are you saying that you have been able to use unicode with TB? If so how did you do it?

Meanwhile, this will print chrs 128-255: (best to set the output window font to Courier New):

FOR i=128 to 255

print chr$(i),

NEXT i

print

print "©" ! use ALT+0169; etc

END

Hope this helps.

Regards, Mike C.

Extended character sets

Hi,

Windows 7 may very well use Unicode, but TB only uses ANSI character sets (character numbers 0-255), not Unicode. Try reading a UFT8 text file and you will see what I mean.

I am currently using TB to create, read, write and to display text files successfully in multiple languages (many Central European) working under Windows XP, Vista, Windows 7 and 8. There is no problem with doing this with TB provided your source files are ANSI formatted and you are using the correct font.

Regards
BigJohn

Win7 and extended characters

Please restate your question... What in relation to True Basic is the problem? Under Windows 7, True Basic can do pretty much anything it could ever do, as far as I can see.

regards,
Mike C.

non-ASCII characters

Hi Mike,
Sorry it took me so long to reply. I don't monitor this site very often. I work in the Windows OS. Prior to Win7, character codes 128-255 had meaning. If we printed or displayed using Chr$(n), it worked fine. However, Microsoft fixed this feature in Win7 -- by eliminating it. Now the non-ASCII character map is no longer valid and the only way to print extended characters is using UniCode, I assume 2-byte. For example, the degree symbol, is now alt+169 or u+00B0. Do you know of anyway to use these characters in TB?

Extended characters

Hi,

I have recently completed a whole bunch of foreign language translations which use the extended character set. My work is used on a variety of operating systems including XP, Vista, Win7 and Win8. The important thing to remember is that TrueBASIC only works with ANSI fonts. As long as you are using an ANSI font then TB will cope with it. This is because the ANSI fonts only have 255 charaters which is the maximum that TB can deal with. This is equivalent to the old DOS Code Page system. For example if you are using the standard Arial font in a Word document and you are using the Central European language setting, then Windows will automatically use Unicode characters. However, if you install the Arial Latin 2 font (which is ANSI) with the Western language setting then Windows will automatically use the ASCii 0 to 255 character set. TrueBASIC cannot handle Unicode fonts in any shape or form other than the first 255 characters.
Regards
Big John