Solved

utf8 escape char convert

Posted on 2009-05-05
3
1,181 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
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP installation issues 11 62
mysql between clause 2 25
PHP not parsing ' character 12 40
parse url to form? 7 14
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

832 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