Solved

utf8 escape char convert

Posted on 2009-05-05
3
1,191 Views
Last Modified: 2012-05-06
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
Comment
Question by:erenpasa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
shobinsun earned 250 total points
ID: 24303235
Hi,

You can use "utf8_decode()"

Look at:

http://in2.php.net/utf8-decode
0
 
LVL 7

Assisted Solution

by:ycTIN
ycTIN earned 250 total points
ID: 24312558
you can use the iconv() function to convert different charset:
$result['display_text'] = iconv("UTF-8","Turkish Charset?",$result['display_text']);
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question