Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1229
  • Last Modified:

utf8 escape char convert

hi,
i use a code like this $jsonStr=json_encode($result);
$result is an array of course.

output like this
{"id":"1","display_text":"Admin Kullan\u0131c\u0131lar"}

there is Turkish char with Unicode. how can i convert it to Turkish char?
thanks


0
erenpasa
Asked:
erenpasa
2 Solutions
 
shobinsunCommented:
Hi,

You can use "utf8_decode()"

Look at:

http://in2.php.net/utf8-decode
0
 
ycTINCommented:
you can use the iconv() function to convert different charset:
$result['display_text'] = iconv("UTF-8","Turkish Charset?",$result['display_text']);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now