unicode problem

Windows specific questions.
Post Reply
sys49152
Posts: 43
Joined: Jun 11, 2005 21:36

unicode problem

Post by sys49152 »

hi

Wstring/Wstr only works in console mode?

This works..

Code: Select all

Print Wstr("åäö")
This works not..

Code: Select all

Screenres 320,240,32,1,0
Print Wstr("åäö")
Using WinXP,FreeBasic 0.16
yetifoot
Posts: 1710
Joined: Sep 11, 2005 7:08
Location: England
Contact:

Post by yetifoot »

Yes, unfortunately that will only work at the console.

The reason is, when you print to a console the OS handles that, and it has all the fonts it needs for unicode.

FB's graphics just have a simple table for the plain ASCII set, in order to support all possible character sets, it would mean increasing the size of the graphics library by a huge amount, and i don't think there would be a way to selectively choose which sets to include, so executable sizes would be a lot bigger.

You could consider using Draw String with a custom font image in order to print the characters you want, that's the only way around it I can think of.
sys49152
Posts: 43
Joined: Jun 11, 2005 21:36

Post by sys49152 »

Ok.. Thankyou.
Post Reply