inconsistent output when using % signs
Posted: Mon Jun 09, 2014 3:46 pm
Hi,
I have some output that is killing the JSON when it has % signs, which seemed odd to me that percent signs alone would kill the JSON, so I decided to test it out and the output I'm getting is wildly inconsistent (but interesting). In the examples below, I see the output correctly in the HTML page (cgi-bin/extinfo.cgi). The first one is the example of when it works correctly.
Input:
Group Share% Use
JSON Output:
"Group Share% Use"
Input:
Group Share% Use% Share
JSON Output:
"Group Share% Use�����hare"
Input:
Group Share% Use% hare
JSON Output:
"Group Share% Use 0x0.000300000003p-1022re"
Input:
Group 90%
JSON Output:
""
Input:
Testing % sign
JSON Output:
"Testing `֞ign"
Any ideas? I'm using commit 6081644, but I had this problems with % signs when I was using 4.0.4 and 4.0.7 (the release from last week).
I have some output that is killing the JSON when it has % signs, which seemed odd to me that percent signs alone would kill the JSON, so I decided to test it out and the output I'm getting is wildly inconsistent (but interesting). In the examples below, I see the output correctly in the HTML page (cgi-bin/extinfo.cgi). The first one is the example of when it works correctly.
Input:
Group Share% Use
JSON Output:
"Group Share% Use"
Input:
Group Share% Use% Share
JSON Output:
"Group Share% Use�����hare"
Input:
Group Share% Use% hare
JSON Output:
"Group Share% Use 0x0.000300000003p-1022re"
Input:
Group 90%
JSON Output:
""
Input:
Testing % sign
JSON Output:
"Testing `֞ign"
Any ideas? I'm using commit 6081644, but I had this problems with % signs when I was using 4.0.4 and 4.0.7 (the release from last week).