• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with JSN file

 
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First off, I know this is probably the wrong forum, so please feel free to move this to the correct one - I'm just not sure which it belongs in.

But basically I have some survey software that allows you to export the answers in text. The output results in the following: [["text answer"]]. But problems are arising when users input the following two characters: & and #
For example, is a user answers like this: ben & jerry, the output in the debug looks like this [["ben
As you can see it cuts off everything after the & (same with #). This is breaking the dat file and the entire application follows.

This did not happen when this was not on a server, only once I started using dat files and JSN. I am not sure where would be best to handle this problem, so I am pasting the code for the JSN where this is causing an issue. But please let me know if I should handle it elsewhere and how I should go about it if possible. The only reason I am putting in this .inc file is because this was not a problem until I started using it.

 
Matt Kohanek
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Researching this has told me I need to do something like this in the inc file before it saves:



Now I just need to figure out where exactly to do that, and what to replace "somestring" with
 
Matt Kohanek
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, I finally figured out what this is, and I am on the wrong site altogether huh? lol
 
reply
    Bookmark Topic Watch Topic
  • New Topic