Script StartupOSAError 4050 -> displaying French accent

James Sentman james at sentman.com
Sat May 7 09:33:51 EDT 2016


I had to fig through Apple’s documentation to figure this out. It seems that the proper text encoding to pass to the initFromHTML method of an NSAttributedString is not the UTF8 that everything else in the system uses, nor the UTF16 that applescript uses just to be difficult but rather ISOLatin1. I would never have guessed that in a million years, what a very strange choice on their part :) Indeed, once I convert that text encoding it will properly display both html and accented characters. Please try this build and let me know if that looks better now.

I have not yet tested this in the web interface, so weirdness may still exist there until I have a look at that.

https://dl.dropboxusercontent.com/u/547252/xtension933.2.zip

> On May 7, 2016, at 6:53 AM, Philippe SCHMUCK <philippe-schmuck at orange.fr> wrote:
> 
> Speaking about French accent display, I have this to submit: I have a property which display correctly French accent like é or à (see the 1st screen copy); but when it’s displayed through a Unit Property, it doesn’t work anymore (see 2nd screen copy).
> Is there a way to add specific formatting to correct this?
> 

Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org		http://MacHomeAutomation.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20160507/ab88236b/attachment.html>


More information about the XTensionList mailing list