Writing to file in utf-8

2014-09-03 Thread jbv
Hi list 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 need these second serie of files to be in

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

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,

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:

Re: permuting a string (was Re: Speed)

2014-09-03 Thread Geoff Canyon
On Tue, Sep 2, 2014 at 1:45 PM, Beat Cornaz b.cor...@gmx.net wrote: Mon, 1 Sep 2014 19:47:58 -0500 From: Geoff Canyon gcan...@gmail.com I think this is faster for many arguments. It might be slower for others. Your right. The only thing with this script is, that it sometimes generates too

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

Redneck Champagne.

2014-09-03 Thread Richmond
For anyone NOT at the Conf. and NOT listening to the Simulcast and NOT obsessively checking this site fifty-seven times a day: http://downloads.livecode.com/livecode/ There are now release candidates for 6.70 and 7.0.0 available for download. Anybody get the reference on the title to this

Re: Writing to file in utf-8

2014-09-03 Thread Trevor DeVore
On Wed, Sep 3, 2014 at 7:28 AM, j...@souslelogo.com 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

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.

[ANN] LiveCode Meeting in the Netherlands - It is free

2014-09-03 Thread Mark Schonewille
Hi, This is the latest news about the meeting. Several people have registered now. I hope to gather between 10 and 20 people on 20th September. Entrance is free. We will have a license for HyperStudio to raffle off. This is really cool. I'm sure someone is going to have a lot of fun with

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 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,

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

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

Re: Strange group behavior

2014-09-03 Thread Peter Haworth
When I types the subject, the same thought crossed my mind! Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Tue, Sep 2, 2014 at 8:32 PM, Tim Selander selan...@tkf.att.ne.jp wrote:

LC 6.7 rc-1 - a couple strange things in an iOS app

2014-09-03 Thread Chris Sheffield
Is anyone trying out the latest LC 6.7 build for iOS apps? I’m seeing a couple odd things that I’m wondering if anyone else has run into. First, I have an iPad app that’s using a couple custom fonts. One font in particular doesn’t seem to work throughout the app. The strange part is it