{"id":526,"date":"2025-02-09T23:21:12","date_gmt":"2025-02-09T23:21:12","guid":{"rendered":"https:\/\/basicwebsitesolutions.com\/blog\/?p=526"},"modified":"2025-02-09T23:21:13","modified_gmt":"2025-02-09T23:21:13","slug":"what-is-the-php-enye-n-version-conversion","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2025\/02\/09\/what-is-the-php-enye-n-version-conversion\/","title":{"rendered":"What is the PHP enye (&#8220;\u00f1&#8221;) version conversion"},"content":{"rendered":"\n<p>When you live in the Philppines, you will probably encounter names and places that have the enye (&#8220;\u00f1&#8221;) symbol. For us developers, it comes out diferently especially in databases and labels.<\/p>\n\n\n\n<p>For the database, it comes out as DASMARI\u00c3\u00b1AS CAVITE with the character &#8220;\u00c3\u00b1&#8221;<\/p>\n\n\n\n<p>Once you put this character in your code, it will translate to enye (&#8220;\u00f1&#8221;).<\/p>\n\n\n\n<p>What i use when a user encodes it, is to convert it using string replace.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$mystring = str_replace(\"DASMARI?\",\"DASMARI\u00f1\",$mystring);\n$mystring = str_replace(\"DASMARI\ufffd\",\"DASMARI\u00f1\",$mystring);<\/code><\/pre>\n\n\n\n<p>Hope this helps someone out there in the web.<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you live in the Philppines, you will probably encounter names and places that have the enye (&#8220;\u00f1&#8221;) symbol. For us developers, it comes out diferently especially in databases and labels. For the database, it comes out as DASMARI\u00c3\u00b1AS CAVITE with the character &#8220;\u00c3\u00b1&#8221; Once you put this character in your code, it will translate &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/basicwebsitesolutions.com\/blog\/2025\/02\/09\/what-is-the-php-enye-n-version-conversion\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What is the PHP enye (&#8220;\u00f1&#8221;) version conversion&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1,11],"tags":[356,355,351,254,42],"class_list":["post-526","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-life-as-a-programmer","category-php-and-mysql","tag-dasmariaas","tag-dasmarinas","tag-enye","tag-mysql","tag-php"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"predecessor-version":[{"id":527,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/526\/revisions\/527"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}