Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6578717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:48:23+00:00 2026-05-25T15:48:23+00:00

I am developing a web applications where users are allowed to enter some text.

  • 0

I am developing a web applications where users are allowed to enter some text. To create profile, I am using the text entered by users which is saved in database. Problem is, if the data entered by user contains a comma, it is spoiling my page as a json string can’t contain a comma. Is there any encoding function in php for supporting commas in json.

Note:
Am using zend framework’s zend encoding function to encode json.

Solved:
I got the solution of this problem, json encoding function of zend framework have some issues with encoding decimal data and comma and that was the reason it was creating problem. I used php’s own json encode function.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:48:23+00:00Added an answer on May 25, 2026 at 3:48 pm

    Did you try json_encode ?

    Works well for me:

    <?php
    
    $str = "my string.";
    
    $json_str = json_encode($str);
    
    echo $json_str . "\n";
    

    Gives:

    "my string."
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web application in which users are allowed to upload pictures, the
After becoming somewhat estranged open source, and spending some years developing web applications in
I'm developing a web application in which users uploads images and I'm keeping the
I'm developing a series of web applications using Eclipse IDE, Maven, SVN, and Hudson
I am developing a web application in which I want to allow users to
my background: i've been developing web applications using php and javascript for the past
I'm possibly developing a web-based application that allows users to create individual pages. I
I'm developing a Grails (Version 1.3.3) Web-Application using the Grails Spring-Security Plugin, Spring-Security-Core-1.0.1 (which,
We are developing and web application which allows users to register for certain events.
I'm developing a Web application that will let users upload images. My concern is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.