[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1224
  • 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

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

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