Solved

utf8 escape char convert

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
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 …

831 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