Re: Writing to file in utf-8

2014-09-03 Thread jbv
Hello Mark Yes you understood me well : the original xml files are in UTF8 and the DB format is UTF8 too. So it seems logical to try to preserve UTF8 through the whole process... Best jbv > Hi jbv, > > I suggested this, because I understand from you that you need UTF8 for the > files and the da

Re: Writing to file in utf-8

2014-09-03 Thread Mark Schonewille
Hi jbv, I suggested this, because I understand from you that you need UTF8 for the files and the database. If you don't need UTF8 for the database and files, then you might as well use the native encoding of your operating system. -- Best regards, Mark Schonewille Economy-x-Talk Consulting an

Re: Writing to file in utf-8

2014-09-03 Thread jbv
> He wants UTF8 files. Another possibility could be, after all processing is done for each xml tree, to replace all weird unicode chars like "Été" by its equivalent ("é" in that case) before saving to the final file... It's not very elegant and a rather brute-force approach but it might work, e

Re: Writing to file in utf-8

2014-09-03 Thread jbv
Hell Trevor > Why are you using unidecode? I am using unidecode because 1- in this LC lesson http://lessons.runrev.com/m/4071/l/20441-unicode it says : The keys to using UTF-8 text in Livecode are the uniEncode() and uniDecode() functions. Let's say you've gotten some UTF-8 text from a web site

Re: Writing to file in utf-8

2014-09-03 Thread Mark Schonewille
He wants UTF8 files. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.

Re: Writing to file in utf-8

2014-09-03 Thread Trevor DeVore
On Wed, Sep 3, 2014 at 7:28 AM, wrote: > I have a script that accumulates successive strings into a file. > Each string comes from utf-8 text files and contains french > characters with accents like "é à ô". > After processing in the script, those strings get accumulated > in other txt files. I n

Re: Writing to file in utf-8

2014-09-03 Thread jbv
___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Writing to file in utf-8

2014-09-03 Thread Mark Schonewille
Hi, Please, post a simplified version of your actual script. Without script, it is really difficult to see what you're doing wrong. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogra

Re: Writing to file in utf-8

2014-09-03 Thread jbv
Hi Mark, Thanks for your reply, and sorry for the missing information. I am on Mac OSX with LC 6.5.2. But a solution that works on different platforms would be nice. As I said, the contents of variable it come from files, which I assume are in utf-8 (when I open them in BBedit or TextWrangler, i

Re: Writing to file in utf-8

2014-09-03 Thread Mark Schonewille
Hi Jbv, Lots of information is missing. First of all, which version of LiveCode are you using? There are quite a few differences between 5, 6 and 7. You provide one line of syntax, but it isn't clear where the contents of the it variable comes from, e.g. from a file or a field. It isn't cle