HTML representation of 'less than or equal to' - not cross-platform?

Peter Haworth pete at lcsql.com
Fri Oct 31 16:50:05 EDT 2014


I ran across the same problem with the ellipsis character.  I ended up
doing this:

if the platform is "MacOS" then
   put ISOToMac(numToChar(133)) into tEllipsis
else
   put numToChar(133) into tEllipsis
end if


Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Fri, Oct 31, 2014 at 12:03 PM, Paul Dupuis <paul at researchware.com> wrote:

> On 10/31/2014 1:01 PM, Graham Samuel wrote:
> >  These are represented on the regular Mac keyboard as option-comma and
> option-period, but these codes are not the same on the PC. Hence my need to
> use html, since these characters are part of the standard html repertoire.
>
> See the isoToMac and macToIso functions in the dictionary. High ASCII
> characters (byte 128-255) differ between platforms. The htmText property
> of a field will not do a character conversion of these for you.
>
> Unfortunately, if your text contains high ASCII characters you need to
> know what platform it was generated on to use or convert via the
> functions above as needed.
>
> OR you need to encode any high ASCII characters in some platform
> independent format, like HTML Unicode characters such as &#nnnn;
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list