Loading ...
Sorry, an error occurred while loading the content.

JSON and special character

Expand Messages
  • Rafael Faria
    Hello, I use to have a lot of application build with ajax, to learn more about JSON and also implement something easier in one of this applications. The BIG
    Message 1 of 2 , Apr 12 2:41 PM
    • 0 Attachment
      Hello,

      I use to have a lot of application build with ajax, to learn more about JSON
      and also implement something easier in one of this applications.

      The BIG problem is when i load it, it comes with some kind of different
      characters. I tried with all the ways to set the content type, doc type,
      and everything else to try make it works but doesnt.

      This file i'm loading that contents json it is a static file, so i can't
      escape from some server side than unescape from javascript. I neet to load
      the file and it should work.

      HOW CAN I DO THAT?! some clue?!

      the json content of file is:

      [
      {"fase": "", "time1": "Cruzeiro", "placar1": "1", "time2":
      "Figueirense", "placar2": "0", "tempo": "", "local": "", "tipojogo":
      "detalhado", "xml": ""},
      {"fase": "", "time1": "Goiás", "placar1": "1", "time2": "Vasco",
      "placar2": "0", "tempo": "", "local": "", "tipojogo": "detalhado", "xml":
      ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
      {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
      "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""}
      ]



      this "Goiás" is the one that comes with error.

      pleaseeeeeeeeeeeeeeeeeeeee someone save me!


      [Non-text portions of this message have been removed]
    • Pavan Kumar Keely
      Hi, What s the charset ? It seems like you created the file (statis JSON) file with some local charset. Can you send me that static file ? Pavan Keely Rafael
      Message 2 of 2 , Apr 12 2:52 PM
      • 0 Attachment
        Hi,

        What's the charset ? It seems like you created the file (statis JSON) file with some local charset. Can you send me that static file ?

        Pavan Keely

        Rafael Faria <www.rafaelfaria@...> wrote:
        Hello,

        I use to have a lot of application build with ajax, to learn more about JSON
        and also implement something easier in one of this applications.

        The BIG problem is when i load it, it comes with some kind of different
        characters. I tried with all the ways to set the content type, doc type,
        and everything else to try make it works but doesnt.

        This file i'm loading that contents json it is a static file, so i can't
        escape from some server side than unescape from javascript. I neet to load
        the file and it should work.

        HOW CAN I DO THAT?! some clue?!

        the json content of file is:

        [
        {"fase": "", "time1": "Cruzeiro", "placar1": "1", "time2":
        "Figueirense", "placar2": "0", "tempo": "", "local": "", "tipojogo":
        "detalhado", "xml": ""},
        {"fase": "", "time1": "Goiás", "placar1": "1", "time2": "Vasco",
        "placar2": "0", "tempo": "", "local": "", "tipojogo": "detalhado", "xml":
        ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""},
        {"fase": "", "time1": "", "placar1": "", "time2": "", "placar2": "",
        "tempo": "", "local": "", "tipojogo": "detalhado", "xml": ""}
        ]



        this "Goiás" is the one that comes with error.

        pleaseeeeeeeeeeeeeeeeeeeee someone save me!


        [Non-text portions of this message have been removed]



        ---------------------------------
        YAHOO! GROUPS LINKS


        Visit your group "json" on the web.

        To unsubscribe from this group, send an email to:
        json-unsubscribe@yahoogroups.com

        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


        ---------------------------------





        ---------------------------------
        New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.