{"id":13855,"date":"2026-11-24T20:23:00","date_gmt":"2026-11-24T14:53:00","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=13855"},"modified":"2026-11-24T20:23:03","modified_gmt":"2026-11-24T14:53:03","slug":"php-utf8-mbstring-functions","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/php-utf8-mbstring-functions\/","title":{"rendered":"PHP UTF-8 and Emoji Handling: 10 mbstring Tips Every PHP Developer Should Know"},"content":{"rendered":"\n<h2 id=\"introduction\" class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A customer named &#8220;Jos\u00e9&#8221; signs up, and your welcome email greets &#8220;Jos\u00c3\u00a9&#8221;. A product title is cut short and ends with a strange &#8220;\ufffd&#8221; symbol. A text message with a &#x1f44b; emoji arrives broken. These bugs all have the same cause: PHP code that treats text as bytes instead of characters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most of PHP&#8217;s classic string functions, like <code>strlen()<\/code>, <code>substr()<\/code>, and <code>strtoupper()<\/code>, work on bytes. That is fine for plain English. But in UTF-8, an accented letter takes two bytes, and an emoji takes four. Cut a string in the wrong place, and you get broken characters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The fix is PHP&#8217;s <strong>mbstring<\/strong> extension (multibyte string). In this guide, we share 10 practical tips for handling UTF-8 and emoji safely in PHP, with examples you can paste into your code.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>On This Page<\/h2><nav><ul><li class=\"\"><a href=\"#introduction\">Introduction<\/a><\/li><li class=\"\"><a href=\"#why-utf-8-handling-matters-in-php\">Why UTF-8 Handling Matters in PHP<\/a><\/li><li class=\"\"><a href=\"#prerequisites\">Prerequisites<\/a><\/li><li class=\"\"><a href=\"#10-tips-for-utf-8-and-emoji-handling-in-php\">10 Tips for UTF-8 and Emoji Handling in PHP<\/a><\/li><li class=\"\"><a href=\"#bonus-counting-sms-characters-with-emoji\">Bonus: Counting SMS Characters with Emoji<\/a><\/li><li class=\"\"><a href=\"#byte-functions-vs-multibyte-functions\">Byte Functions vs Multibyte Functions<\/a><\/li><li class=\"\"><a href=\"#common-utf-8-mistakes-to-avoid\">Common UTF-8 Mistakes to Avoid<\/a><\/li><li class=\"\"><a href=\"#conclusion\">Conclusion<\/a><\/li><li class=\"\"><a href=\"#faqs\">FAQs<\/a><\/li><li class=\"\"><a href=\"#related-articles\">Related Articles<\/a><\/li><li class=\"\"><a href=\"#official-documentation\">Official Documentation<\/a><\/li><li class=\"\"><a href=\"#talk-to-our-php-experts\">Talk to Our PHP Experts<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 id=\"why-utf-8-handling-matters-in-php\" class=\"wp-block-heading\">Why UTF-8 Handling Matters in PHP<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$text = 'Hi &#x1f44b;';\necho strlen($text);     \/\/ 7  (bytes)\necho mb_strlen($text);  \/\/ 4  (characters)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Broken text:<\/strong> cutting in the middle of a character creates invalid UTF-8.<\/li>\n\n\n\n<li><strong>Wrong limits:<\/strong> a 50-character limit checked with <code>strlen()<\/code> rejects valid names in Hindi, Tamil, or Chinese.<\/li>\n\n\n\n<li><strong>Database errors:<\/strong> invalid UTF-8 can fail to save, or be stored as question marks.<\/li>\n\n\n\n<li><strong>Messaging costs:<\/strong> in SMS, one emoji changes the encoding and can double the number of message parts.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"prerequisites\" class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP 8.0 or newer (some tips need PHP 8.3 or 8.4, as noted).<\/li>\n\n\n\n<li>The <code>mbstring<\/code> extension. Check with <code>php -m | grep mbstring<\/code>.<\/li>\n\n\n\n<li>The <code>intl<\/code> extension for tip 9 (grapheme functions).<\/li>\n<\/ul>\n\n\n\n<h2 id=\"10-tips-for-utf-8-and-emoji-handling-in-php\" class=\"wp-block-heading\">10 Tips for UTF-8 and Emoji Handling in PHP<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Use UTF-8 Everywhere<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Most encoding bugs happen at the edges: the browser, the database, or a file. Make UTF-8 the default at every step.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>; php.ini\ndefault_charset = \"UTF-8\"\n\n\/\/ PDO connection: use utf8mb4, not utf8\n$pdo = new PDO('mysql:host=127.0.0.1;dbname=app;charset=utf8mb4', $user, $pass);\n\n\/\/ HTTP response\nheader('Content-Type: text\/html; charset=UTF-8');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In MySQL, <code>utf8<\/code> only stores up to three bytes per character, so it cannot store emoji. Always use <code>utf8mb4<\/code> for tables and connections.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Count Characters with mb_strlen()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>mb_strlen()<\/code> for length limits and validation. Use <code>strlen()<\/code> only when you really need the size in bytes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$name = 'Caf\u00e9';\nstrlen($name);     \/\/ 5\nmb_strlen($name);  \/\/ 4\n\nif (mb_strlen($name) &gt; 50) {\n    throw new InvalidArgumentException('Name is too long');\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Cut Strings with mb_substr()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>substr()<\/code> can split an emoji or accented letter in half. <code>mb_substr()<\/code> always cuts between characters.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$title = 'Caf\u00e9 &#x2615; Specials';\nsubstr($title, 0, 7);     \/\/ \"Caf\u00e9 \" plus one broken byte of &#x2615;\nmb_substr($title, 0, 6);  \/\/ \"Caf\u00e9 &#x2615;\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. Truncate for Display with mb_strimwidth()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For previews and table cells, <code>mb_strimwidth()<\/code> cuts by display width and adds an ending like &#8220;\u2026&#8221;. It also knows that Chinese, Japanese, and Korean characters take up double width on screen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\necho mb_strimwidth('Welcome to our new online store', 0, 20, '\u2026');\n\/\/ \"Welcome to our new \u2026\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. Change Case with mb_strtoupper() and mb_convert_case()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Since PHP 8, <code>strtoupper()<\/code> only changes ASCII letters. Use the mbstring versions for every language.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nstrtoupper('jos\u00e9');                        \/\/ \"JOS\u00e9\"\nmb_strtoupper('jos\u00e9');                     \/\/ \"JOS\u00c9\"\nmb_strtoupper('stra\u00dfe');                   \/\/ \"STRASSE\"\nmb_convert_case('ravi kumar', MB_CASE_TITLE); \/\/ \"Ravi Kumar\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. Split into Characters with mb_str_split()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Need to loop over each character, for example to mask a value or check every letter? <code>str_split()<\/code> splits bytes. <code>mb_str_split()<\/code> splits characters.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nprint_r(mb_str_split('Hi&#x1f44b;'));\n\/\/ &#091;'H', 'i', '&#x1f44b;']<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">7. Validate Input with mb_check_encoding()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Never trust that incoming text is valid UTF-8. Check it at the edge of your app, before saving it or passing it on.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nif (!mb_check_encoding($input, 'UTF-8')) {\n    http_response_code(400);\n    exit('Invalid text encoding');\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">8. Convert Old Encodings with mb_convert_encoding()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CSV exports from old systems often use Windows-1252 or ISO-8859-1. Convert them to UTF-8 as soon as you read them.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$line = mb_convert_encoding($line, 'UTF-8', 'Windows-1252');<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">9. Use Grapheme Functions for Complex Emoji<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some emoji are made of several characters joined together, like a family emoji or a flag. To a user it is one symbol, but <code>mb_strlen()<\/code> counts each part. The <code>grapheme_*<\/code> functions from the intl extension count what the user actually sees.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n$family = '&#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f467;';\nmb_strlen($family);        \/\/ 5\ngrapheme_strlen($family);  \/\/ 1\n\ngrapheme_substr('Hi &#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f467; there', 0, 4); \/\/ \"Hi &#x1f468;&#x200d;&#x1f469;&#x200d;&#x1f467;\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">10. Add the \/u Flag to Regular Expressions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Without the <code>\/u<\/code> flag, <code>preg_*<\/code> functions work on bytes. With it, they understand UTF-8, and they fail safely on invalid input.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ Allow letters from any language, spaces, and hyphens\n$valid = preg_match('\/^&#091;\\p{L}\\s-]{2,50}$\/u', $name);<\/code><\/pre>\n\n\n\n<h2 id=\"bonus-counting-sms-characters-with-emoji\" class=\"wp-block-heading\">Bonus: Counting SMS Characters with Emoji<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SMS messages with any character outside the basic GSM alphabet, including every emoji, are sent as UCS-2\/UTF-16. Then one message holds 70 units instead of 160, and each emoji counts as <strong>two<\/strong> units. You can count UTF-16 units in PHP like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nfunction utf16Units(string $text): int\n{\n    return intdiv(strlen(mb_convert_encoding($text, 'UTF-16BE', 'UTF-8')), 2);\n}\n\nutf16Units('Hi &#x1f44b;'); \/\/ 5  (H, i, space, and 2 units for the emoji)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When you split long messages into parts, split between characters (or graphemes), never in the middle of an emoji. Otherwise the person receiving it sees broken symbols at the join.<\/p>\n\n\n\n<h2 id=\"byte-functions-vs-multibyte-functions\" class=\"wp-block-heading\">Byte Functions vs Multibyte Functions<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Task<\/th><th>Avoid for UTF-8<\/th><th>Use instead<\/th><\/tr><\/thead><tbody><tr><td>Length<\/td><td>strlen()<\/td><td>mb_strlen() or grapheme_strlen()<\/td><\/tr><tr><td>Substring<\/td><td>substr()<\/td><td>mb_substr() or grapheme_substr()<\/td><\/tr><tr><td>Find position<\/td><td>strpos()<\/td><td>mb_strpos()<\/td><\/tr><tr><td>Upper\/lower case<\/td><td>strtoupper(), ucfirst()<\/td><td>mb_strtoupper(), mb_ucfirst() (PHP 8.4)<\/td><\/tr><tr><td>Split<\/td><td>str_split()<\/td><td>mb_str_split()<\/td><\/tr><tr><td>Padding<\/td><td>str_pad()<\/td><td>mb_str_pad() (PHP 8.3)<\/td><\/tr><tr><td>Trimming Unicode spaces<\/td><td>trim()<\/td><td>mb_trim() (PHP 8.4)<\/td><\/tr><tr><td>Truncate for display<\/td><td>substr() + &#8220;&#8230;&#8221;<\/td><td>mb_strimwidth()<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"common-utf-8-mistakes-to-avoid\" class=\"wp-block-heading\">Common UTF-8 Mistakes to Avoid<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Using MySQL <code>utf8<\/code> instead of <code>utf8mb4<\/code>.<\/strong> Emoji will fail to save.<\/li>\n\n\n\n<li><strong>Checking length with <code>strlen()<\/code>.<\/strong> Non-English names will hit limits too early.<\/li>\n\n\n\n<li><strong>Running <code>utf8_encode()<\/code> on text that is already UTF-8.<\/strong> This creates &#8220;\u00c3\u00a9&#8221; style errors. The function is deprecated since PHP 8.2 anyway.<\/li>\n\n\n\n<li><strong>Cutting text with <code>substr()<\/code> for previews.<\/strong> This leaves a broken &#8220;\ufffd&#8221; at the end.<\/li>\n\n\n\n<li><strong>Forgetting <code>\/u<\/code> in regex.<\/strong> Patterns quietly match the wrong things.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"conclusion\" class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Good UTF-8 handling is not hard. Use UTF-8 and <code>utf8mb4<\/code> everywhere, swap byte functions for their <code>mb_<\/code> versions, validate input at the edges, and reach for grapheme functions when emoji matter. Your users&#8217; names, languages, and emoji will come through exactly as they typed them.<\/p>\n\n\n\n<h2 id=\"faqs\" class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Why does strlen() return the wrong length for emoji?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">strlen() counts bytes, not characters. Most emoji take 4 bytes in UTF-8, so strlen(&#8216;&#x1f44b;&#8217;) returns 4. Use mb_strlen() to count characters.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. What is the difference between mb_strlen() and grapheme_strlen()?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">mb_strlen() counts Unicode code points. grapheme_strlen() counts what a user sees as one character, so a family or flag emoji counts as 1.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Why do I see \u00c3\u00a9 instead of \u00e9?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">UTF-8 text was read as Latin-1 (ISO-8859-1) and then converted to UTF-8 again. Make sure every layer, from the database connection to the HTTP header, uses UTF-8.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Why can&#8217;t MySQL save my emoji?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The table or connection uses utf8 (3 bytes max). Switch both to utf8mb4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Is mbstring installed by default?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is included with PHP but is not always enabled. On Ubuntu, install it with sudo apt install php-mbstring and restart PHP-FPM or Apache.<\/p>\n\n\n\n<h2 id=\"related-articles\" class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/php-pdo-prepared-statements\/\">PHP PDO Prepared Statements: 8 Steps to Prevent SQL Injection<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/using-php-and-cron-to-automate-kannel-status-monitoring\/\">Using PHP and Cron to Automate Kannel Status Monitoring<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/php2shell-vulnerability\/\">PHP2Shell Vulnerability: How to Protect Your PHP Server<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"official-documentation\" class=\"wp-block-heading\">Official Documentation<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/book.mbstring.php\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Manual: Multibyte String (mbstring)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/ref.intl.grapheme.php\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Manual: Grapheme Functions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.php.net\/manual\/en\/function.mb-str-split.php\" target=\"_blank\" rel=\"noreferrer noopener\">PHP Manual: mb_str_split<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"talk-to-our-php-experts\" class=\"wp-block-heading\">Talk to Our PHP Experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Broken characters make a product look careless, and encoding bugs in messaging can cost real money. At <a href=\"https:\/\/pheonixsolutions.com\/web-development\/\">Pheonix Solutions<\/a>, our PHP team builds multilingual web apps and messaging systems that handle every language and emoji correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We can help you with:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/web-development\/\">PHP and web development<\/a> for multilingual sites, APIs, and SMS platforms.<\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/devops-cloud\/\">DevOps and cloud services<\/a> to run PHP applications reliably.<\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/software-maintenance-and-support\/\">Software maintenance and support<\/a> to fix encoding bugs in existing code and databases.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Seeing broken characters or emoji in your app? <a href=\"https:\/\/pheonixsolutions.com\/contact\/\">Talk to our PHP experts<\/a> and get it fixed for good.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn 10 practical tips for handling UTF-8 and emoji in PHP with mbstring and grapheme functions, so text, names and messages are never broken or cut in half.<\/p>\n","protected":false},"author":540,"featured_media":13851,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1049,1022],"tags":[],"class_list":["post-13855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-web-architecture","psol-cat-php"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-3Bt","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2026\/11\/php-utf8-mbstring-functions-featured.jpg","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/13855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/540"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=13855"}],"version-history":[{"count":4,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/13855\/revisions"}],"predecessor-version":[{"id":13865,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/13855\/revisions\/13865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/13851"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=13855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=13855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=13855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}