AW: AW: AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-17 Thread Tiemo Hollmann TB via use-livecode
;use-livecode@lists.runrev.com> Cc: Kay C Lan <lan.kc.macm...@gmail.com> Betreff: Re: AW: AW: Why do I still need MacToISO, when working with UTF-8? On Tue, Jan 17, 2017 at 1:24 AM, Mark Waddingham via use-livecode <use-livecode@lists.runrev.com> wrote: > > However, the 'endpoints'

Re: AW: AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-17 Thread Kay C Lan via use-livecode
On Tue, Jan 17, 2017 at 1:24 AM, Mark Waddingham via use-livecode wrote: > > However, the 'endpoints' (i.e. where the developer can 'see' encoded text > output - e.g. when writing to a file, or encoding for a URL) had to remain > as before otherwise all existing

AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Tiemo Hollmann TB via use-livecode
use-livecode Gesendet: Montag, 16. Januar 2017 18:30 An: How to use LiveCode <use-livecode@lists.runrev.com> Cc: Mark Waddingham <m...@livecode.com> Betreff: Re: Why do I still need MacToISO, when working with UTF-8? Hi Matthias, On 2017-01-16 18:25, Matthias Rebbe via use-li

Re: AW: AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Sébastien Nouat via use-livecode
e-boun...@lists.runrev.com] Im Auftrag von Mark Waddingham via use-livecode Gesendet: Montag, 16. Januar 2017 17:42 An: How to use LiveCode <use-livecode@lists.runrev.com> Cc: Mark Waddingham <m...@livecode.com> Betreff: Re: AW: Why do I still need MacToISO, when working with UTF-8? Hi Tiemo,

Re: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Matthias Rebbe via use-livecode
Mark, thanks again for your explanations. That explains some strange things here in the past… ;) Matthias Matthias Rebbe Bramkampsieke 13 32312 Lübbecke Tel +49 5741 31 +49 160 5504462 Fax: +49 5741 310002 eMail: matth...@m-r-d.de BR5 Konverter - BR5

Re: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Mark Waddingham via use-livecode
Am 16.01.2017 um 18:30 schrieb Mark Waddingham via use-livecode >: Sure - here is how I'd slightly adjust Tiemo's code: *put fld "name" into myName* -- ... *open file myFile for binary write* *write textEncode(myName,

Re: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Matthias Rebbe via use-livecode
Hi Mark, thanks for that. > Am 16.01.2017 um 18:30 schrieb Mark Waddingham via use-livecode > >: > > > Sure - here is how I'd slightly adjust Tiemo's code: > > *put fld "name" into myName* > -- ... > *open file myFile for

Re: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Mark Waddingham via use-livecode
Hi Matthias, On 2017-01-16 18:25, Matthias Rebbe via use-livecode wrote: It would have been nice if you had also put some sample code for how to UTF8 encode the string. That would have made your explanations complete. ;) Sure - here is how I'd slightly adjust Tiemo's code: *put fld "name"

Re: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Matthias Rebbe via use-livecode
Hi Mark, although i am not the original poster i really appreciate you explanation. The only thing what was missing … It would have been nice if you had also put some sample code for how to UTF8 encode the string. That would have made your explanations complete. ;) I am pretty sure there are

Re: AW: AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Mark Waddingham via use-livecode
Hi Tiemo, thank you for taking your time and clarifying. I wasn't aware that the internal format on a Mac client is MacRoman. I thought it would be a "neutral" UTF-8 format. Internally, the engine uses either MacRoman/ISO-Latin1 *or* UTF-16 depending on platform and what the string contains.

AW: AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Tiemo Hollmann TB via use-livecode
Im Auftrag von Mark Waddingham via use-livecode Gesendet: Montag, 16. Januar 2017 17:42 An: How to use LiveCode <use-livecode@lists.runrev.com> Cc: Mark Waddingham <m...@livecode.com> Betreff: Re: AW: Why do I still need MacToISO, when working with UTF-8? Hi Tiemo, Okay so, I'm assum

Re: AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Mark Waddingham via use-livecode
Hi Tiemo, Okay so, I'm assuming that all this code is running on the Mac client... *put fld "name" into myName* At this point myName contains a (text) string - thus encoding issues don't exist (you should think of text strings in memory as being stored in an 'encoding neutral' format).

AW: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Tiemo Hollmann TB via use-livecode
use LiveCode <use-livecode@lists.runrev.com> Cc: Mark Waddingham <m...@livecode.com> Betreff: Re: Why do I still need MacToISO, when working with UTF-8? Hi Tiemo, On 2017-01-16 11:57, Tiemo Hollmann TB via use-livecode wrote: > Now my German Umlaute don't get corrupted in the MySQL db and

Re: Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Mark Waddingham via use-livecode
Hi Tiemo, On 2017-01-16 11:57, Tiemo Hollmann TB via use-livecode wrote: Now my German Umlaute don't get corrupted in the MySQL db and everything is fine, but I would like to understand the technical background. Why do I still need MacToISO() in LC 8 on a Mac and even worse, I didn't needed

Why do I still need MacToISO, when working with UTF-8?

2017-01-16 Thread Tiemo Hollmann TB via use-livecode
Hello, Probably my knowledge about code sets is too limited. My thinking was, that UTF-8 includes the same characters above ASCII 128 independent of the platform and makes data transfer between different platform compatible without conversion of a char set. Migrating a LC 6 program to LC 8 I just