Re: Writing Text files
Re: Writing Text files
- Subject: Re: Writing Text files
- From: Rainer Standke <email@hidden>
- Date: Sat, 17 Nov 2012 16:50:09 -0800
I think the bottom line is to save everything in UTF-8, especially when it comes to XMLs...
Rainer
On Nov 17, 2012, at 10:18, John Delacour <email@hidden> wrote:
> On 17/11/12 15:16, Andreas Kiel wrote:
>> The problem is that the application is used by many people on many machines.
>> So on each individual machine it works fine in most cases - unfortunately only in most but not all.
>>
>> ... For one of them it will be misinterpreted in Apple's DVD SP - even though both use the same version of the app. And there is no way to set up decoding for the latter app.
>> Another user with a different version of the OS (other stuff the same) creates the same file with my app - but the other people (first two) will have problems with this text file.
>>
>> So in any case you have to do a kind of "force encoding" when opening the text file and re-save it.
>>
>> This behavior does not apply only to the text files created by my app. You can create a text file in TextEdit with some special characters, save it - and the behavior is the same.
>
> The simple fact is that no matter what legacy encoding (perish the thought!) you give to the file, no application will know what the encoding is, and the same goes for UTF-8. If DVD Studio Pro can't read UTF-8 then they should use an application that belongs to the 21st century instead. All text editors in the modern era should be set to default to UTF-8 and if your users have chosen for some odd reason to set their default encoding to some obsolete so-miscalled "MacRoman" or "iso-8859-1" or anything else then that's their lookout.
>
> JD
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden