Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I show special language characters (i.e. ANSI) in the internal text editor of Xbasic?

0
Posted

How do I show special language characters (i.e. ANSI) in the internal text editor of Xbasic?

0

That’s a simple matter of changing the font the editor uses. The font you’re using is what Windows calls an OEM font – it uses the original IBM PC character set. You’ll have to choose a font which has the characters you want in it. Go into the file \xb\xxx\font.xxx, comment out “OEM_FIXED_FONT” and choose another (say, ANSI_FIXED_FONT), or to only change in the editor there edit \xb\xxx\property.xxx, adding a line to set the font in any xuiTextArea of xb to your chosen font. Most functions of XBASIC require characters be between 32 and 127. You could enter it as hexadecimal (\xE9, like above) or as octal (\351). There’s a command to do the conversion called XstBinStringToBackString$, and of course a command which does the opposite as well. GUI Designer has to use this function to convert embedded quotes to \”, and your characters were converted as well. It should work properly as a string with backslash codes, if not then you’ll have to convert it back with the opposite function XstBac

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123