Re: Byte order in unicode button labels

2006-05-08 Thread Dar Scott
On May 5, 2006, at 12:47 PM, Devin Asay wrote: I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different label names in custom properties. But I just

Re: Byte order in unicode button labels

2006-05-08 Thread Devin Asay
On May 8, 2006, at 1:24 PM, Dar Scott wrote: On May 5, 2006, at 12:47 PM, Devin Asay wrote: I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different

Byte order in unicode button labels

2006-05-05 Thread Devin Asay
I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different label names in custom properties. But I just discovered that the byte order is swapped between

Re: Byte order in unicode button labels

2006-05-05 Thread Devin Asay
On May 5, 2006, at 12:47 PM, Devin Asay wrote: I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different label names in custom properties. But I just

Re: Byte order in unicode button labels

2006-05-05 Thread Mark Smith
Not certain that this is the appropriate or best way to deal with it (I know little about unicode), but just to swap the bytes (this sort of thing has worked well for me when dealing with binary numbers): function swapBytePairs pString repeat with n = 2 to length(pString) step 2 put

Re: Byte order in unicode button labels

2006-05-05 Thread Dar Scott
On May 5, 2006, at 12:47 PM, Devin Asay wrote: I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different label names in custom properties. But I just