QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The _MAPUNICODE function returns the Unicode (UTF-32) code point value of a mapped ASCII character code.

Syntax

utfValue& = _MAPUNICODE(asciiCode%)

Description

Example(s)

Store function return values in an array for ASCII codes 0 to 255 to restore them later.


DIM Unicode&(255)
SCREEN 0
_FONT _LOADFONT("C:\Windows\Fonts\Cour.ttf", 20, "MONOSPACE") 'select monospace font

FOR ascii = 0 TO 255
Unicode&(ascii) = _MAPUNICODE(ascii)     'read Unicode values
PRINT Unicode&(ascii);                   'display values in demo
NEXT
 'rest of program 
END

See Also