realbasic-plugins
[Top] [All Lists]

Greek letter problem

To: realbasic-plugins at lists dot realsoftware dot com
Subject: Greek letter problem
From: Bob Delaney <delaneyrm at earthlink dot net>
Date: Thu, 26 May 2005 23:01:14 -0500
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
This problem is probably known, but it's new to me. My MKS Plugin uses the Greek mu (µ) as a prefix for micro (1e-6) and the Greek letter for ohm (?). These work fine in my C++ Metrowerks project using source files of the plugin. But in my plugin as used by REALbasic they didn't work at all.

I found the problem. REALbasic passes to my plugin in a REALstring two bytes for µ (194,181) and two bytes for ? (206,169), rather than the one byte expected. So I can program around this, since the first byte represents the character in Geneva.

This probably is related to standard ASCII only being defined for 0-127. Various fonts have different meanings for 128-255. So am I going to run into trouble with a developer's choice of font for an EditField or for source code? Or does REALbasic always encode Greek letters the same way as two bytes which are independent of the chosen font?

Is there an easy way around this problem, or am I going to have to do some detailed programming?

Bob
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>