Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Keisuke Miyako via 4D_Tech
have you tried receiving the response with a variable declared as object? if that doesn't work, then I guess you could receive BLOB, convert to text, and parse. it is always better to receive BLOB as opposes to text, picture or object, when you can't be sure of what goes on on the server side.

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Cannon Smith via 4D_Tech
Hi Miyako, This morning I figured out more exactly where the error was occurring. It isn’t as general as I thought and it isn’t from .json files coming from disk. Instead, it was only occurring when using HTTP Get to pull down a .json file from a website. I’m not sure if the web server should

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Keisuke Miyako via 4D_Tech
to text, obviously. plain text file formats such as CSS or JS have no way of asserting their encoding, so while it is true in general that a BOM for UTF8 is unnecessary, I believe they do serve an important role in the context of reading or writing a generic plain text file. 2017/09/01

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Keisuke Miyako via 4D_Tech
Hello, it's true that the commands were introduced to promote JSON, among other things, but as long as you use "document to json" to restore the text, the BOMs are removed anyway, so I can't see how the existence of a BOM could be such a big problem. 2017/08/31 23:25、Cannon Smith via 4D_Tech

Re: 4dmethod.com - Publish/Subscribe Component for 4D, David Adams

2017-08-31 Thread David Adams via 4D_Tech
> I recall that my original one had the objects > subscribe to specific services and then the routing object would only send > messages to objects looking for them. Yes, that makes sense. What I showed yesterday does much the same. You want to avoid excessive broadcasting when the recipient is

Re: 4dmethod.com - Publish/Subscribe Component for 4D, David Adams

2017-08-31 Thread truegold via 4D_Tech
Hey Brent, You’re welcome! I would be very interested in "the worker watcher code soon with a little demo video”! especially with a little video explanation. Please let me know when it’s available. Appreciate, John… > Thanks John! It is good to hear that people are getting some valuable

Base 64 broken in 4DIC 16.x?

2017-08-31 Thread Jeffrey Kain via 4D_Tech
Anyone else seeing Base64 encoding not working correctly in the version 16 of 4D Internet Commands? We haven't debugged this 100% yet, but it seems to be adding some incorrect padding characters to the base64 text depending on the length of the source message, which causes mail clients to not

Re: 4dmethod.com - Publish/Subscribe Component for 4D, David Adams

2017-08-31 Thread Brent Raymond via 4D_Tech
Thanks John! It is good to hear that people are getting some valuable input and discussion from these meetings :) I have posted Davids slides on 4DMethod. Thanks for making them available, David! https://4dmethod.files.wordpress.com/2017/08/slides.pdf Ill also share the worker watcher code

Re: Drag & Drop challenge - developer wanted

2017-08-31 Thread Lee Hinde via 4D_Tech
Thanks! On Wed, Aug 30, 2017 at 11:58 PM, Daniel N. Solenthaler via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Hi Lee, > > Credits to Ortwin Zillgen (http://.mettre.de/wp/ < > http://.mettre.de/wp/>), who did some fancy Apple Script and VB > programming for us. > > He is currently working

Re: 4dmethod.com - Publish/Subscribe Component for 4D, David Adams

2017-08-31 Thread truegold via 4D_Tech
Hey David, Ref: "I'm sceptical that slides are worth much without a presentation but, well, here you go! “ True except for some of the slides were used in your presentation and they layout on clear diagram form some of thew points you made. Especially the one where you renamed the command to

Re: Tip: Finding scheduling conflicts

2017-08-31 Thread Kirk Brooks via 4D_Tech
David, On Wed, Aug 30, 2017 at 2:37 PM, David Adams via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I'm back to tell you about a wonderful thing called "the Internet" ;-) I > turns out that Sedgewick has a series of free courses at Coursera: > >

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Cannon Smith via 4D_Tech
Thanks to everyone who responded. My first problem was using the UTF8 text without length constant instead of “UTF-8”. Who knew they would be different! Thanks for pointing that out, Justin. The main reason I didn’t want to have a BOM character was that JSON Parse chokes on such documents.

Re: TEXT TO DOCUMENT With Special Characters

2017-08-31 Thread Arnaud de Montard via 4D_Tech
> Le 31 août 2017 à 00:53, Cannon Smith via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > I’m having trouble with saving Unicode characters to a file. For example, the > following code saves a file to disk: > > C_TEXT($tText;$tFilepath) > > $tText:=“©” //Copyright symbol >

RE: Widget performance

2017-08-31 Thread Piotr Chabot Stadhouders via 4D_Tech
Hi Miyako, Searching for some tips about widgets (subforms) and handling focus, setting disabled, etc. I found this link on the iNUG: https://github.com/miyako/4d-widget-custom-picture-button/wiki I must say I really like what you have done, and the source code is really helpful understanding

Re: Drag & Drop challenge - developer wanted

2017-08-31 Thread Daniel N. Solenthaler via 4D_Tech
Hi Lee, Credits to Ortwin Zillgen (http://.mettre.de/wp/ ), who did some fancy Apple Script and VB programming for us. He is currently working on an update of the Apple Script for Sierra, since Apple changed something in the way attachments are loaded. Cheers,