coldfusion

Why is my JSON invalid even though it looks correct?

左心房为你撑大大i 提交于 2021-01-27 16:10:47
问题 I've been working on this for quite a while, and I just don't understand why my JSON is invalid... JSONLint is showing this error Error: Parse error on line 107: ...pair?", "answer": "Yes, as long as the ----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' This is the fragment of the JSON { "tags": "already transferred", "question": "Can we transfer customers who have already been transferred previously? what is the dispo? warm transfer or

Why is my JSON invalid even though it looks correct?

旧街凉风 提交于 2021-01-27 15:08:38
问题 I've been working on this for quite a while, and I just don't understand why my JSON is invalid... JSONLint is showing this error Error: Parse error on line 107: ...pair?", "answer": "Yes, as long as the ----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' This is the fragment of the JSON { "tags": "already transferred", "question": "Can we transfer customers who have already been transferred previously? what is the dispo? warm transfer or

Coldfusion 2018 vs 11, Centos 6 vs 7, handling of symlinks

三世轮回 提交于 2021-01-27 12:30:52
问题 I'm getting different outputs from getCurrentTemplatePath in CF2018 on Centos7 vs CF11 on Centos6 /path/to/folder contains a symlink v1 which points to /path/to/v1 With an apache website using DocumentRoot /path/to/folder , then visiting /v1 in a browser, the index.cfm dumps out expandPath('.') and getCurrentTemplatePath() in CF11 on Centos6, I get: expandPath: /path/to/v1 getCurrentTemplatePath: /path/to/v1/index.cfm in CF2018 on Centos7, I get: expandPath: /path/to/v1 getCurrentTemplatePath

How to make EncodeForURL() encode the same way as URLEncodedFormat()

别等时光非礼了梦想. 提交于 2021-01-27 07:48:56
问题 The URLEncodedFormat() function does something that I specifically want which is this: Generates a URL-encoded string. For example, it replaces spaces with %20 Why does EncodeForURL() not do this? It replaces spaces with a plus "+" symbol instead which is stopping my URLs working. How would I be able to get around this other than using URLEncodedFormat()? 来源: https://stackoverflow.com/questions/25516195/how-to-make-encodeforurl-encode-the-same-way-as-urlencodedformat

How to make EncodeForURL() encode the same way as URLEncodedFormat()

我与影子孤独终老i 提交于 2021-01-27 07:42:42
问题 The URLEncodedFormat() function does something that I specifically want which is this: Generates a URL-encoded string. For example, it replaces spaces with %20 Why does EncodeForURL() not do this? It replaces spaces with a plus "+" symbol instead which is stopping my URLs working. How would I be able to get around this other than using URLEncodedFormat()? 来源: https://stackoverflow.com/questions/25516195/how-to-make-encodeforurl-encode-the-same-way-as-urlencodedformat

How to make EncodeForURL() encode the same way as URLEncodedFormat()

浪子不回头ぞ 提交于 2021-01-27 07:42:24
问题 The URLEncodedFormat() function does something that I specifically want which is this: Generates a URL-encoded string. For example, it replaces spaces with %20 Why does EncodeForURL() not do this? It replaces spaces with a plus "+" symbol instead which is stopping my URLs working. How would I be able to get around this other than using URLEncodedFormat()? 来源: https://stackoverflow.com/questions/25516195/how-to-make-encodeforurl-encode-the-same-way-as-urlencodedformat

Google calendar add by URL requirements

孤街浪徒 提交于 2021-01-27 03:55:21
问题 I am trying to add a Google calendar through the add by URL method. I receive a generic error of "Failed to add imported calendar at 'my URL' for 'my username' " from Google calendar. The URL I'm adding to Google calls a Restful service that sends back a .ics file. I am able to validate my URL here: http://severinghaus.org/projects/icv/ and here: http://icalvalid.cloudapp.net/ What is it that Google calendar is expecting to receive that I am missing? These are the contents of the .ics file I